]> git.proxmox.com Git - rustc.git/blobdiff - vendor/compiler_builtins/libm/src/math/cosh.rs
New upstream version 1.37.0+dfsg1
[rustc.git] / vendor / compiler_builtins / libm / src / math / cosh.rs
index b6ba338b55f2edc2a7e56d8a8f13767deba24c22..bac875566855de7895fddbc8a02fa6c91760953f 100644 (file)
@@ -2,6 +2,11 @@ use super::exp;
 use super::expm1;
 use super::k_expo2;
 
+/// Hyperbolic cosine (f64)
+///
+/// Computes the hyperbolic cosine of the argument x.
+/// Is defined as `(exp(x) + exp(-x))/2`
+/// Angles are specified in radians.
 #[inline]
 #[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
 pub fn cosh(mut x: f64) -> f64 {