tarcieri / micromath

Embedded Rust arithmetic, 2D/3D vector, and statistics library
Apache License 2.0
401 stars 21 forks source link

Hyperbolic cosine #113

Closed sunsided closed 4 months ago

sunsided commented 4 months ago

This adds the hyperbolic cosine function cosh. A taylor series expansion resulted in too much of a deviation, so I expressed it in the classical way in terms of the already existing exp function.