Skip to content

Commit

Permalink
update tests for flint3
Browse files Browse the repository at this point in the history
  • Loading branch information
mezzarobba committed Oct 15, 2023
1 parent 974fcd4 commit 556fbaf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/sage/rings/complex_arb.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1360,12 +1360,13 @@ cdef class ComplexBall(RingElement):
sage: CBF100(-3r)
-3.000000000000000000000000000000
sage: ComplexBall(CBF100, 10^100)
1.000000000000000000000000000000e+100
sage: ComplexBall(CBF100, CIF(1, 2))
1.000000000000000000000000000000 + 2.000000000000000000000000000000*I
sage: ComplexBall(CBF100, RBF(1/3), RBF(1))
[0.3333333333333333 +/- ...e-17] + 1.000000000000000000000000000000*I
sage: ComplexBall(CBF100, 10^100)
[1.000000000000000000000000000000e+100 +/- ...]
sage: NF.<a> = QuadraticField(-1, embedding=CC(0, -1))
sage: CBF(a)
-1.000000000000000*I
Expand Down Expand Up @@ -3009,7 +3010,7 @@ cdef class ComplexBall(RingElement):
sage: CBF(1).rising_factorial(2**64)
[+/- ...e+347382171326740403407]
sage: ComplexBallField(128)(1).rising_factorial(2**64)
[2.343691126796861348e+347382171305201285713 +/- ...e+347382171305201285694]
[2.34369112679686134...e+347382171305201285713 +/- ...]
sage: CBF(1/2).rising_factorial(CBF(2,3)) # abs tol 1e-15
[-0.123060451458124 +/- 3.06e-16] + [0.0406412631676552 +/- 7.57e-17]*I
Expand Down
4 changes: 2 additions & 2 deletions src/sage/rings/real_arb.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ class RealBallField(UniqueRepresentation, sage.rings.abc.RealBallField):
sage: RBF.gamma(5)
24.00000000000000
sage: RBF.gamma(10**20)
[+/- ...e+1956570552410610660600]
[1.932849514310098...+1956570551809674817225 +/- ...]
sage: RBF.gamma(1/3)
[2.678938534707747 +/- ...e-16]
sage: RBF.gamma(-5)
Expand Down Expand Up @@ -1102,7 +1102,7 @@ class RealBallField(UniqueRepresentation, sage.rings.abc.RealBallField):
15.00000000000000,
48.00000000000000]
sage: RBF.double_factorial(2**20)
[1.4483729903e+2928836 +/- ...e+2928825]
[1.448372990...e+2928836 +/- ...]
sage: RBF.double_factorial(2**1000)
Traceback (most recent call last):
...
Expand Down

0 comments on commit 556fbaf

Please sign in to comment.