-
-
Notifications
You must be signed in to change notification settings - Fork 656
Open
Description
Similarly to #24457 for real numbers we perform some cleaning for complex numbers in view of #17713/#24457.
step 1
- complex_field.py complex_number.pyx -> complex_mpfr.pyx #24483: move
sage.rings.complex_field
tosage.rings.complex_mpfr
- change the string representation from
Complex Field with XX bits of precision
toComplex Floating-point Field with XX bits of precision
- (possibly) get rid of the factory
ComplexField
by making the classComplexField_class
inherits fromUniqueRepresentation
- rename
CompleNumber
/ComplexField
intoComplexFloatingPoint
/ComplexFloatingPointField
- remove the attribute
_prec
ofComplexNumber
(ampfr_t
carries its precision that can be obtained withmpfr_get_prec
) - deprecate
is_ComplexNumber(x)
/is_ComplexField(x)
in favor ofisinstance(x, ComplexFloatingPoint)
/isinstance(x, ComplexFloatingPointField)
- actually initialize the
mpfr_t
pointers in__cinit__
as it is the case for real floating point numbers inreal_mpfr.pyx
- clarify the behavior of rounding (currently there is a global (sic) variable taking care of it)
- Deprecate
CC
in favor ofCFF
see also task ticket #17713
Depends on #24483
Depends on #24457
CC: @mezzarobba @jpflori
Component: basic arithmetic
Author: Vincent Delecroix
Issue created by migration from https://trac.sagemath.org/ticket/24489