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

Commit

Permalink
23861: Doctest fix for Expression normalization with symbolic powers
Browse files Browse the repository at this point in the history
  • Loading branch information
rwst committed Oct 24, 2017
1 parent bc45dab commit 824a54a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/sage/symbolic/expression.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -9110,6 +9110,15 @@ cdef class Expression(CommutativeRingElement):
sage: (e + c/a - b*c^2/(a^2*(b*c/a-d)) + c*d/(a*(b*c/a-d))).normalize()
e
Check that :trac:`23861` is fixed::
sage: (x^(2*pi) + x^(-2*pi) - 2).normalize()
(x^(4*pi) - 2*x^(2*pi) + 1)/x^(2*pi)
sage: (e^2 + e^(-2) - 2).normalize()
(e^4 - 2*e^2 + 1)/e^2
sage: (e^(2*pi) - e^(-2*pi)).normalize()
(e^(4*pi) - 1)/e^(2*pi)
ALGORITHM: Uses GiNaC.
"""
Expand Down

0 comments on commit 824a54a

Please sign in to comment.