Pixel-Composer/scripts/hyperbolic_function/hyperbolic_function.gml
2023-07-11 20:36:44 +02:00

3 lines
No EOL
168 B
Text

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); }