pub fn cosh(arg: &Expression) -> ExpressionExpand description
Evaluate hyperbolic cosine cosh(x)
§Mathematical Definition
cosh(x) = (e^x + e^(-x)) / 2
§Arguments
arg- Expression to compute cosh of
§Returns
Hyperbolic cosine expression
§Examples
use mathhook_core::functions::elementary::hyperbolic_eval::cosh;
use mathhook_core::expr;
let result = cosh(&expr!(0));
assert_eq!(result, expr!(1));