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

Commit

Permalink
Trac #12322: Add a doctest for the correct behavior introduced in tra…
Browse files Browse the repository at this point in the history
…c #12737.
  • Loading branch information
orlitzky committed Dec 20, 2013
1 parent fbfb10b commit 55eb0aa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/sage/symbolic/expression.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -7818,6 +7818,17 @@ cdef class Expression(CommutativeRingElement):
sage: original - simplified
0
The invalid simplification from :trac:`12322` should not occur
after :trac:`12737`::
sage: t = var('t')
sage: assume(t, 'complex')
sage: assumptions()
[t is complex]
sage: f = (1/2)*log(2*t) + (1/2)*log(1/t)
sage: f.simplify_full()
1/2*log(2*t) - 1/2*log(t)
"""
x = self
x = x.simplify_factorial()
Expand Down

0 comments on commit 55eb0aa

Please sign in to comment.