Learn R Programming

flint (version 0.0.3)

Constants: Mathematical Constants Represented to Arbitrary Precision

Description

Compute standard mathematical constants to arbitrary precision.

Usage

arb_const_pi(prec = flintPrec())
arb_const_log2(prec = flintPrec())
arb_const_log10(prec = flintPrec())
arb_const_e(prec = flintPrec())

Value

An arb vector storing function values with error bounds. Its length is the length of prec, typically 1.

Arguments

prec

a numeric or slong vector indicating the desired precision as a number of bits.

References

The FLINT documentation of the underlying C functions: https://flintlib.org/doc/arb.html

See Also

Class arb.

Examples

Run this code
prec <- cumprod(rep(c(1, 2), c(1L, 15L)))
arb_const_pi(prec)

Run the code above in your browser using DataLab