hyp
Hyperbolic Functions (f64)
Hyperbolic trigonometric functions for 32.32 fixed-point numbers.
Functions
sinh/cosh/tanh- Hyperbolic functionsasinh/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
| cosh | Calculates hyperbolic cosine: cosh(a) = (e^a + e^-a) / 2 |
| sinh | Calculates hyperbolic sine: sinh(a) = (e^a - e^-a) / 2 |
| tanh | Calculates hyperbolic tangent: tanh(a) = sinh(a) / cosh(a) |
| acosh | Calculates inverse hyperbolic cosine: acosh(a) = ln(a + sqrt(a² - 1)) Requires a ≥ 1. |
| asinh | Calculates inverse hyperbolic sine: asinh(a) = ln(a + sqrt(a² + 1)) |
| atanh | Calculates inverse hyperbolic tangent: atanh(a) = ln((1+a)/(1-a)) / 2 Requires -1 < a < 1. |