Package sage :: Package rings :: Module complex_interval
[hide private]
[frames] | no frames]

Module complex_interval



File: sage/rings/complex_interval.pyx (starting at line 1)

Arbitrary Precision Complex Intervals

This is a simple complex interval package, using intervals which are
axis-aligned rectangles in the complex plane.  It has very few special
functions, and it does not use any special tricks to keep the size of
the intervals down.

AUTHOR:
  These authors wrote complex_number.pyx.
    -- William Stein (2006-01-26): complete rewrite
    -- Joel B. Mohler (2006-12-16): naive rewrite into pyrex
    -- William Stein(2007-01): rewrite of Mohler's rewrite
  Then complex_number.pyx was copied to complex_interval.pyx and
  heavily modified:
    -- Carl Witty (2007-10-24): rewrite to become a complex interval package



Classes [hide private]
  ComplexIntervalFieldElement
File: sage/rings/complex_interval.pyx (starting at line 47) A complex interval.
Functions [hide private]
 
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.
 
is_ComplexIntervalFieldElement(...)
File: sage/rings/complex_interval.pyx (starting at line 44)
 
make_ComplexIntervalFieldElement0(...)
File: sage/rings/complex_interval.pyx (starting at line 851)
Function Details [hide private]

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