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

Commit

Permalink
fix two trivial doctest failures
Browse files Browse the repository at this point in the history
  • Loading branch information
vbraun committed Jul 15, 2014
1 parent 38a52cf commit 2573b80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/sage/rings/number_field/number_field_element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2120,8 +2120,7 @@ cdef class NumberFieldElement(FieldElement):
sage: K.<a> = NumberField(x^3 + x - 1, embedding=0.68)
sage: b = SR(a); b # indirect doctest
1/3*(3*(1/18*sqrt(31)*sqrt(3) + 1/2)^(2/3) - 1)/(1/18*sqrt(31)*sqrt(3) + 1/2)^(1/3)
(1/18*sqrt(31)*sqrt(3) + 1/2)^(1/3) - 1/3/(1/18*sqrt(31)*sqrt(3) + 1/2)^(1/3)
sage: (b^3 + b - 1).simplify_radical()
0
Expand Down
2 changes: 1 addition & 1 deletion src/sage/symbolic/relation.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ def solve(f, *args, **kwds):
be implicitly an integer (hence the ``z``)::
sage: solve([cos(x)*sin(x) == 1/2, x+y == 0],x,y)
[[x == 1/4*pi + pi*z80, y == -1/4*pi - pi*z80]]
[[x == 1/4*pi + pi*z..., y == -1/4*pi - pi*z...]]
Expressions which are not equations are assumed to be set equal
to zero, as with `x` in the following example::
Expand Down

0 comments on commit 2573b80

Please sign in to comment.