ExactReals.ExactReals
— ModuleExact real arithmetic using a Boehm scaled-integer representation.
Reference: Keith Briggs, Implementing exact real arithmetic in Python, C++ and C. Theor. Comp. Sci.351 (2006), 74–81
ExactReals.ExactReal
— TypeStructure representing a real number that is computable to arbitrary precision.
ExactReals.ExactReal
— MethodMemoized evaluation of the nth value in the representation
ExactReals.value_range
— FunctionReturns an interval (as a tuple) containing the exact real number; this interval is of approximate width 2^(-n)
.
ExactReals.compare
— MethodReturns -1 if x < y and +1 if x > y
ExactReals.msd
— MethodMost significant digit