diff --git a/src/language/CMathModule.cpp b/src/language/CMathModule.cpp index 225291c49c76a131695c26f5490e4c098a2b3a4e..dc534db15057027685ad8907741ffb9afe9a95b7 100644 --- a/src/language/CMathModule.cpp +++ b/src/language/CMathModule.cpp @@ -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); }}));