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

Commit

Permalink
add doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveWitteMorris committed Mar 24, 2021
1 parent 270a2f9 commit a2ebbeb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/sage/symbolic/expression.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -4875,6 +4875,20 @@ cdef class Expression(CommutativeRingElement):
sage: ((-x)^(3/4)).expand()
(-x)^(3/4)
sage: forget()
Check that :trac:`31077` is fixed::
sage: a,b,c,d = var("a b c d")
sage: ((a + b + c)^30 * (3*b + d - 5/d)^3).expand().subs(a=0,b=2,c=-1)
d^3 + 18*d^2 + 93*d - 465/d + 450/d^2 - 125/d^3 + 36
Check that :trac:`31411` is fixed::
sage: q, j = var("q, j")
sage: A = q^(2/3) + q^(2/5)
sage: B = product(1 - q^j, j, 1, 31) * q^(1/24)
sage: bool((A * B).expand() == (A * B.expand()).expand())
True
"""
if side is not None:
if not is_a_relational(self._gobj):
Expand Down

0 comments on commit a2ebbeb

Please sign in to comment.