Re: [sage-devel] Are complex numbers ordered?

2020-05-20 Thread Michael Orlitzky
On 5/20/20 6:42 PM, TB wrote: > > The _cmp_ method does not appear in > https://doc.sagemath.org/html/en/reference/rings_numerical/sage/rings/complex_double.html > and makes finding this fact harder for most users (in most cases _cmp_ > and other _methods_ would make the docs harder to read). Yo

Re: [sage-devel] Are complex numbers ordered?

2020-05-20 Thread 'Benjamin Matschke' via sage-devel
One additional problem with the order is that it is not numerically stable. An example where it is currently used in sage is NumberField.embeddings()-function, the roots of the defining polynomial are sorted this way. Due to the possible numerical instability, it is not clear that the order of the

[sage-devel] Re: On development workflows for sharing (experimental) code

2020-05-20 Thread Matthias Koeppe
Dear Nicolas and all, On Tuesday, May 3, 2016 at 7:59:05 AM UTC-7, Nicolas M. Thiéry wrote: > > > Tangentially to the recent discussion about modularity of the Sage > library and support for packages on top of Sage, I have started > writing some notes about the different workflows that have been

Re: [sage-devel] Are complex numbers ordered?

2020-05-20 Thread Nils Bruin
On Wednesday, May 20, 2020 at 3:42:57 PM UTC-7, mathzeta2 wrote: > > This seems to be the case: > > https://git.sagemath.org/sage.git/tree/src/sage/rings/complex_number.pyx#n1176 > > > https://git.sagemath.org/sage.git/tree/src/sage/rings/complex_double.pyx#n807 > > The latter even says: "We or

Re: [sage-devel] Are complex numbers ordered?

2020-05-20 Thread TB
This seems to be the case: https://git.sagemath.org/sage.git/tree/src/sage/rings/complex_number.pyx#n1176 https://git.sagemath.org/sage.git/tree/src/sage/rings/complex_double.pyx#n807 The latter even says: "We order the complex numbers in dictionary order by real parts then imaginary parts. Th

Re: [sage-devel] Are complex numbers ordered?

2020-05-20 Thread Vincent Delecroix
Complex numbers are ordered lexicographically (first by real part and then imaginary part). I agree that it is not completely natural, but having a total ordering is very useful when programming. Le 20/05/2020 à 23:12, Bruce Westbury a écrit : This was unexpected {{{ sage: CC(I) > CC(0) True sa

[sage-devel] Are complex numbers ordered?

2020-05-20 Thread Bruce Westbury
This was unexpected {{{ sage: CC(I) > CC(0) True sage: CC(-I) > CC(0) False }}} Are these the intended results? -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to s

[sage-devel] Re: Flint-2.6.0 alpha release (testing requested)

2020-05-20 Thread 'Bill Hart' via sage-devel
Hi again, Commit a960857c7d8e5ea7c4d4c2958e38ec52778d85d9 of the Flint repository [1] is now flint-2.6.0-alpha2 This is the last chance for developers working on related projects to see if Flint works as expected for them, before we start asking end users/distributions to start testing. We have