Module arbitrary_precision

Module arbitrary_precision 

Source
Expand description

Arbitrary precision numerical computation support

§Arbitrary Precision Numerical Computation Support

This module provides arbitrary precision arithmetic capabilities for scientific computing, enabling calculations with user-defined precision levels for both integers and floating-point numbers.

§Features

  • Arbitrary precision integers (BigInt)
  • Arbitrary precision floating-point numbers (BigFloat)
  • Exact rational arithmetic (BigRational)
  • Arbitrary precision complex numbers (BigComplex)
  • Integration with existing ScientificNumber traits
  • Automatic precision tracking and management
  • Configurable precision contexts
  • Efficient operations with GMP/MPFR backend

Modules§

utils
Utility functions for arbitrary precision arithmetic

Structs§

ArbitraryComplex
Arbitrary precision complex number
ArbitraryFloat
Arbitrary precision floating-point number
ArbitraryInt
Arbitrary precision integer
ArbitraryPrecisionBuilder
Builder for arbitrary precision calculations
ArbitraryPrecisionContext
Precision context for arbitrary precision arithmetic
ArbitraryRational
Arbitrary precision rational number

Enums§

RoundingMode
Rounding modes for arbitrary precision arithmetic

Traits§

ToArbitraryPrecision
Conversion trait for arbitrary precision types

Functions§

get_defaultprecision
Get the default precision for arbitrary precision operations
setprecision
Set the default precision for arbitrary precision operations