Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

hyp

Hyperbolic Functions (f64)

Hyperbolic trigonometric functions for 32.32 fixed-point numbers.

Functions

  • sinh / cosh / tanh - Hyperbolic functions
  • asinh / acosh / atanh - Inverse hyperbolic functions

Formulas

  • sinh(x) = (e^x - e^-x) / 2
  • cosh(x) = (e^x + e^-x) / 2
  • tanh(x) = sinh(x) / cosh(x)

Fully qualified path: cairo_fp::f64::math::hyp

Free functions

coshCalculates hyperbolic cosine: cosh(a) = (e^a + e^-a) / 2
sinhCalculates hyperbolic sine: sinh(a) = (e^a - e^-a) / 2
tanhCalculates hyperbolic tangent: tanh(a) = sinh(a) / cosh(a)
acoshCalculates inverse hyperbolic cosine: acosh(a) = ln(a + sqrt(a² - 1)) Requires a ≥ 1.
asinhCalculates inverse hyperbolic sine: asinh(a) = ln(a + sqrt(a² + 1))
atanhCalculates inverse hyperbolic tangent: atanh(a) = ln((1+a)/(1-a)) / 2 Requires -1 < a < 1.