create_ComplexIntervalFieldElement(...)
|
|
File: sage/rings/complex_interval.pyx (starting at line 857)
Return the complex number defined by the strings s_real and s_imag as an element of
\code{ComplexIntervalField(prec=n)}, where n potentially has slightly more
(controlled by pad) bits than given by s.
INPUT:
s_real -- a string that defines a real number (or something whose
string representation defines a number)
s_imag -- a string that defines a real number (or something whose
string representation defines a number)
pad -- an integer >= 0.
min_prec -- number will have at least this many bits of precision, no matter what.
EXAMPLES:
sage: ComplexIntervalFieldElement('2.3')
[2.2999999999999998 .. 2.3000000000000003]
sage: ComplexIntervalFieldElement('2.3','1.1')
[2.2999999999999998 .. 2.3000000000000003] + [1.0999999999999998 .. 1.1000000000000001]*I
sage: ComplexIntervalFieldElement(10)
[10.000000000000000 .. 10.000000000000000]
sage: ComplexIntervalFieldElement(10,10)
[10.000000000000000 .. 10.000000000000000] + [10.000000000000000 .. 10.000000000000000]*I
sage: ComplexIntervalFieldElement(1.000000000000000000000000000,2)
[1.00000000000000000000000000000 .. 1.00000000000000000000000000000] + [2.00000000000000000000000000000 .. 2.00000000000000000000000000000]*I
sage: ComplexIntervalFieldElement(1,2.000000000000000000000)
[1.00000000000000000000000 .. 1.00000000000000000000000] + [2.00000000000000000000000 .. 2.00000000000000000000000]*I
|