Constants function

Mathematical Constants Represented to Arbitrary Precision

Mathematical Constants Represented to Arbitrary Precision

Compute standard mathematical constants to arbitrary precision.

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

Arguments

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

Returns

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

See Also

Class arb.

References

The FLINT documentation of the underlying

functions: https://flintlib.org/doc/arb.html

Examples

prec <- cumprod(rep(c(1, 2), c(1L, 15L))) arb_const_pi(prec)
  • Maintainer: Mikael Jagan
  • License: GPL (>= 2)
  • Last published: 2025-03-24