R/inverse_hyperbolic_functions.R

Defines functions atanh_boost asinh_boost acosh_boost

Documented in acosh_boost asinh_boost atanh_boost

#' @title Inverse Hyperbolic Functions
#' @name inverse_hyperbolic_functions
#' @description Functions to compute the inverse hyperbolic functions: acosh, asinh, and atanh.
#' @seealso [Boost Documentation](https://www.boost.org/doc/libs/latest/libs/math/doc/html/math_toolkit/inv_hyper.html) for more details on the mathematical background.
#' @param x Input numeric value
#' @return A single numeric value with the computed inverse hyperbolic function.
#' @examples
#' # Inverse Hyperbolic Cosine
#' acosh_boost(2)
#' # Inverse Hyperbolic Sine
#' asinh_boost(1)
#' # Inverse Hyperbolic Tangent
#' atanh_boost(0.5)
NULL

#' @rdname inverse_hyperbolic_functions
#' @export
acosh_boost <- function(x) {
  .Call(`acosh_`, x)
}

#' @rdname inverse_hyperbolic_functions
#' @export
asinh_boost <- function(x) {
  .Call(`asinh_`, x)
}

#' @rdname inverse_hyperbolic_functions
#' @export
atanh_boost <- function(x) {
  .Call(`atanh_`, x)
}

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.