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

Commit

Permalink
CC->PARI conversion: fix doctest failures
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Mar 6, 2014
1 parent d6fdd0c commit 7067299
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/sage/libs/pari/gen.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -4833,7 +4833,7 @@ cdef class gen(sage.structure.element.RingElement):
-2.18503986326152
sage: C.<i> = ComplexField()
sage: pari(i).tan()
0.E-19 + 0.761594155955765*I
0.761594155955765*I
"""
pari_catch_sig_on()
return P.new_gen(gtan(x.g, prec_bits_to_words(precision)))
Expand All @@ -4853,7 +4853,7 @@ cdef class gen(sage.structure.element.RingElement):
0.761594155955765
sage: C.<i> = ComplexField()
sage: z = pari(i); z
0.E-19 + 1.00000000000000*I
1.00000000000000*I
sage: result = z.tanh()
sage: result.real() <= 1e-18
True
Expand Down Expand Up @@ -4938,7 +4938,7 @@ cdef class gen(sage.structure.element.RingElement):
1.18920711500272 + 0.E-19*I # 32-bit
1.18920711500272 + 2.71050543121376 E-20*I # 64-bit
sage: pari(i).weber(1)
1.09050773266526 + 0.E-19*I
1.09050773266526
sage: pari(i).weber(2)
1.09050773266526
"""
Expand Down
2 changes: 1 addition & 1 deletion src/sage/schemes/elliptic_curves/heegner.py
Original file line number Diff line number Diff line change
Expand Up @@ -3152,7 +3152,7 @@ def numerical_approx(self, prec=53):
sage: E = EllipticCurve('37a'); P = E.heegner_point(-40); P
Heegner point of discriminant -40 on elliptic curve of conductor 37
sage: P.numerical_approx()
(-6.68...e-16 + 1.41421356237310*I : 1.00000000000000 - 1.41421356237309*I : 1.00000000000000)
(-6.6...e-16 + 1.41421356237310*I : 1.00000000000000 - 1.41421356237309*I : 1.00000000000000)
A rank 2 curve, where all Heegner points of conductor 1 are 0::
Expand Down

0 comments on commit 7067299

Please sign in to comment.