# Functions
ArithmeticGeometricMean returns the arithmetic–geometric mean of x and y with 2^precisions bits.
ChebyshevApproximation computes a Chebyshev approximation of the input function, for the range [-a, b] of degree degree.
ChebyshevEval evaluates y = sum Ti(x) * poly[i], where T0(x) = 1, T1(x) = (2x-a-b)/(b-a) and T{i+j}(x) = 2TiTj(x)- T|i-j|(x).
Cos is an iterative arbitrary precision computation of Cos(x) Iterative process with an error of ~10^{−0.60206*k} = (1/4)^k after k iterations.
DivRound sets the target i to round(a/b).
Exp returns exp(x) with 2^precisions bits.
Log return ln(x) with 2^precisions bits.
No description provided by the author
Log2ErfC returns log2(1 - erf(x)).
MonomialEval evaluates y = sum x^i * poly[i].
NewComplexMultiplier creates a new ComplexMultiplier.
NewFloat creates a new big.Float element with "prec" bits of precision.
NewInt allocates a new *big.Int.
NewPolynomial creates a new polynomial from the input parameters: basis: either `Monomial` or `Chebyshev` coeffs: []Complex128, []float64, []bignum.Complex or []big.Float interval: [2]float64{a, b} or *Interval.
NewRemez instantiates a new Remez algorithm from the provided parameters.
No description provided by the author
Pi returns Pi with prec bits of precision.
Pow returns x^y.
RandInt generates a random Int in [0, max-1].
Round returns round(x).
No description provided by the author
No description provided by the author
SinH returns hyperbolic sin(x) with 2^precisions bits.
No description provided by the author
TanH returns hyperbolic tan(x) with 2^precisions bits.
ToComplex takes a - complex32, complex128 - float32, float64, - int, int64, uint, uint64, - *big.Int, big.Int, - *big.Float, big.Float - *bignum.Complex, bignum.Complex and returns a *bignum.Complex set to the given precision.
ToComplexSlice takes a - []complex32, []complex128 - []float32, []float64, - []int, []int64, []uint, []uint64, - []big.Int - []big.Float - []bignum.Complex and returns a []bignum.Complex set to the given precision.
# Structs
ComplexMultiplier is a struct for the multiplication or division of two arbitrary precision complex numbers.
Interval is a struct storing information about interval for a polynomial approximation.
No description provided by the author
No description provided by the author
No description provided by the author
Remez implements the optimized multi-interval minimax approximation algorithm of Lee et al.
RemezParameters is a struct storing the parameters required to initialize the Remez algorithm.