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
No related branches found
No related tags found
1 merge request!37Feature/language
...@@ -44,6 +44,24 @@ CMathModule::CMathModule() ...@@ -44,6 +44,24 @@ CMathModule::CMathModule()
std::make_shared<CFunctionEmbedder<double, double, double>>(std::function<double(double, double)>{ std::make_shared<CFunctionEmbedder<double, double, double>>(std::function<double(double, double)>{
[](double x, double y) -> double { return std::atan2(x, y); }})); [](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>>( this->_addFunction("exp", std::make_shared<CFunctionEmbedder<double, double>>(
std::function<double(double)>{[](double x) -> double { return std::exp(x); }})); 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 register or to comment