Skip to content
Snippets Groups Projects
Commit f38f03bc authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add hyperbolic functions to math module

parent a2926233
Branches
Tags
1 merge request!37Feature/language
......@@ -44,6 +44,24 @@ CMathModule::CMathModule()
std::make_shared<CFunctionEmbedder<double, double, double>>(std::function<double(double, double)>{
[](double x, double y) -> double { return std::atan2(x, y); }}));
this->_addFunction("sinh", std::make_shared<CFunctionEmbedder<double, double>>(
std::function<double(double)>{[](double x) -> double { return std::sinh(x); }}));
this->_addFunction("cosh", std::make_shared<CFunctionEmbedder<double, double>>(
std::function<double(double)>{[](double x) -> double { return std::cosh(x); }}));
this->_addFunction("tanh", std::make_shared<CFunctionEmbedder<double, double>>(
std::function<double(double)>{[](double x) -> double { return std::tanh(x); }}));
this->_addFunction("asinh", std::make_shared<CFunctionEmbedder<double, double>>(
std::function<double(double)>{[](double x) -> double { return std::asinh(x); }}));
this->_addFunction("acosh", std::make_shared<CFunctionEmbedder<double, double>>(
std::function<double(double)>{[](double x) -> double { return std::acosh(x); }}));
this->_addFunction("atanh", std::make_shared<CFunctionEmbedder<double, double>>(
std::function<double(double)>{[](double x) -> double { return std::atanh(x); }}));
this->_addFunction("exp", std::make_shared<CFunctionEmbedder<double, double>>(
std::function<double(double)>{[](double x) -> double { return std::exp(x); }}));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment