Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 55eb0aa

Browse files
committed
Trac #12322: Add a doctest for the correct behavior introduced in trac #12737.
1 parent fbfb10b commit 55eb0aa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/sage/symbolic/expression.pyx

+11
Original file line numberDiff line numberDiff line change
@@ -7818,6 +7818,17 @@ cdef class Expression(CommutativeRingElement):
78187818
sage: original - simplified
78197819
0
78207820
7821+
The invalid simplification from :trac:`12322` should not occur
7822+
after :trac:`12737`::
7823+
7824+
sage: t = var('t')
7825+
sage: assume(t, 'complex')
7826+
sage: assumptions()
7827+
[t is complex]
7828+
sage: f = (1/2)*log(2*t) + (1/2)*log(1/t)
7829+
sage: f.simplify_full()
7830+
1/2*log(2*t) - 1/2*log(t)
7831+
78217832
"""
78227833
x = self
78237834
x = x.simplify_factorial()

0 commit comments

Comments
 (0)