Boost Math - Constants

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(boostmath)

Constants

Retrieve Specific Constants

constants("pi")
constants("e")
constants("phi")

List All Available Constants

constants()


Try the boostmath package in your browser

Any scripts or data that you put into this service are public.

boostmath documentation built on Dec. 15, 2025, 5:07 p.m.