Closed yovanoc closed 6 years ago
No, it is correct. Integrate it yourself to see why, or have a look at these sources:
If using cosh, it should be written as follows:
cosh
return 1/Math.pow(Math.cosh(x), 2)
But
return 1 - Math.exp(Math.tanh(x), 2)
Is just the same thing.
No, it is correct. Integrate it yourself to see why, or have a look at these sources:
If using
cosh
, it should be written as follows:But
Is just the same thing.