Pixel-Composer/scripts/hyperbolic_function/hyperbolic_function.gml

3 lines
168 B
Plaintext
Raw Normal View History

2023-07-11 20:36:44 +02:00
function sinh(x) { return (exp(x) - exp(-x)) / 2; }
function cosh(x) { return (exp(x) + exp(-x)) / 2; }
function tanh(x) { return (exp(2 * x) - 1) / (exp(2 * x) + 1); }