R/zeta_functions.R

Defines functions zeta

Documented in zeta

#' Riemann Zeta Function
#'
#' Computes the Riemann zeta function \eqn{(\zeta(s))} for argument \eqn{(z)}.
#'
#' @param z Real number input
#' @return The value of the Riemann zeta function \eqn{(\zeta(z))}.
#' @export
#' @examples
#' # Riemann Zeta Function
#' zeta(2)  # Should return pi^2 / 6
zeta <- function(z) {
  .Call(`zeta_`, z)
}

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.