We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
double tanh(double x) { double x0 = exp(x); double x1 = 1.0 / x0; return ((x0 + x1) / (x0 - x1)); }
Should be: return ((x0 - x1) / (x0 + x1)); see e.g. https://en.wikipedia.org/wiki/Hyperbolic_function#Definitions
return ((x0 - x1) / (x0 + x1));
The text was updated successfully, but these errors were encountered:
Thanks for spotting it, I fixed it in source now. I think also binary library has to be rebuilt for this change to take effect.
Sorry, something went wrong.
No branches or pull requests
Should be:
return ((x0 - x1) / (x0 + x1));
see e.g.https://en.wikipedia.org/wiki/Hyperbolic_function#Definitions
The text was updated successfully, but these errors were encountered: