Fixed and Arbitrary Precision Numerical Fields#
Sage supports arbitrary precision real (RealField) and complex fields (ComplexField). Sage also provides two optimized fixed precision fields for numerical computation, the real double (RealDoubleField) and complex double fields (ComplexDoubleField).
Real and complex double elements are optimized implementations that use the GNU Scientific Library for arithmetic and some special functions. Arbitrary precision real and complex numbers are implemented using the MPFR library, which builds on GMP. In many cases the PARI C-library is used to compute special functions when implementations aren’t otherwise available.
Sage implements real and complex interval arithmetic using MPFI (RealIntervalField, ComplexIntervalField) and arb (RealBallField, ComplexBallField).
- Arbitrary Precision Real Intervals
- Real intervals with a fixed absolute precision
- Field of Arbitrary Precision Complex Intervals
- Arbitrary Precision Complex Intervals
- Arbitrary precision real balls using Arb
- Arbitrary precision complex balls using Arb