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

Commit

Permalink
trac #17671: fix two doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
videlec committed Jan 28, 2015
1 parent 0f536c9 commit 2e0d79e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/sage/rings/polynomial/polynomial_quotient_ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,11 @@ class of the category, and store the current class of the quotient
new methods from the category of fields, thanks to
:meth:`Element.__getattr__`::
sage: isinstance(Q.an_element(),Q.element_class)
sage: e = Q.an_element()
sage: isinstance(e, Q.element_class)
False
sage: Q.an_element().gcd.__module__
'sage.categories.fields'
sage: e.gcd(e+1)
1
Since the category has changed, we repeat the test suite. However, we have to skip the test
for its elements, since `an_element` has been cached in the previous run of the test suite,
Expand Down
2 changes: 1 addition & 1 deletion src/sage/symbolic/expression.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -10067,7 +10067,7 @@ cdef class Expression(CommutativeRingElement):
sage: a.solve(t)
[]
sage: b = a.canonicalize_radical(); b
-23040*(-2.0*e^(1800*t) + 25.0*e^(900*t) - 32.0)*e^(-2400*t)
-23040.0*(-2.0*e^(1800*t) + 25.0*e^(900*t) - 32.0)*e^(-2400*t)
sage: b.solve(t)
[]
sage: b.solve(t, to_poly_solve=True)
Expand Down

0 comments on commit 2e0d79e

Please sign in to comment.