summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mezzarobba <marc@mezzarobba.net>2018-07-09 18:01:16 +0200
committerMarc Mezzarobba <marc@mezzarobba.net>2018-07-09 18:01:16 +0200
commitbadccf626203931e6fa0733c8f60550aa7426377 (patch)
treeb2af1a95638fa39a8447636fca3fd07431ccd770
parentUpdated SageMath version to 8.3.rc0 (diff)
#25620 work around weakness of _arb_vec_sort_pretty in testu/mmezzarobba/ticket/25620
-rw-r--r--src/sage/rings/complex_arb.pyx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sage/rings/complex_arb.pyx b/src/sage/rings/complex_arb.pyx
index 5e6736b..af571e2 100644
--- a/src/sage/rings/complex_arb.pyx
+++ b/src/sage/rings/complex_arb.pyx
@@ -786,16 +786,16 @@ class ComplexBallField(UniqueRepresentation, Field):
...
ValueError: unable to isolate the roots (try using proof=False or
increasing the precision)
- sage: pol.roots(multiplicities=False, proof=False)
+ sage: sorted(pol.roots(multiplicities=False, proof=False), key=str)
doctest:...
UserWarning: roots may have been lost...
- [[0.001000000 +/- 2.52e-10] + [+/- 2.05e-10]*I,
+ [[-14.72907378354557 +/- 4.63e-15] + [-10.70100790294238 +/- 2.16e-15]*I,
+ [-14.72907378354557 +/- 4.63e-15] + [10.70100790294238 +/- 2.16e-15]*I,
[0.00100000 +/- 1.56e-10] + [+/- 1.27e-10]*I,
+ [0.001000000 +/- 2.52e-10] + [+/- 2.05e-10]*I,
[18.20524201487994 +/- 1.22e-15] + [+/- 5.75e-37]*I,
- [-14.72907378354557 +/- 4.63e-15] + [10.70100790294238 +/- 2.16e-15]*I,
- [-14.72907378354557 +/- 4.63e-15] + [-10.70100790294238 +/- 2.16e-15]*I,
- [5.625452776105595 +/- 2.29e-16] + [17.31459450084417 +/- 4.09e-15]*I,
- [5.625452776105595 +/- 2.29e-16] + [-17.31459450084417 +/- 4.09e-15]*I]
+ [5.625452776105595 +/- 2.29e-16] + [-17.31459450084417 +/- 4.09e-15]*I,
+ [5.625452776105595 +/- 2.29e-16] + [17.31459450084417 +/- 4.09e-15]*I]
sage: pol.roots(ComplexBallField(100), multiplicities=False)
[[0.00099999999997763932022675...] + [+/- ...]*I,
...]