kennethgoodman / rockstar_math

mathlib for rockstar language
2 stars 2 forks source link

Hyperbolic and inverse hyperbolic functions #9

Closed DavideFauri closed 6 years ago

DavideFauri commented 6 years ago

I've implemented the hyperbolic functions using the power expansion for sinh and cosh, and a simple division for tanh.

For the inverse hyperbolic functions, I preferred to use the definition in terms of the natural logarithm. This means that we are limited by the precision, and computing speed, of ln, but at the moment should be sufficient.

And again, there are some newlines that are changed by my editor and are marked as changes by github. I still can't manage to fix that, I'm seriously considering nuking my local repo and start from scratch :D