diff --git a/include/functions.hpp b/include/functions.hpp index 20f2357..8cef6e4 100644 --- a/include/functions.hpp +++ b/include/functions.hpp @@ -60,6 +60,8 @@ FUNCTION(factorial); FUNCTION(ln); FUNCTION(exp); +FUNCTION(sqrt); + FUNCTION(sin); FUNCTION(cos); FUNCTION(tan); diff --git a/src/main.cpp b/src/main.cpp index 6c9bf97..9c3c0d8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -59,6 +59,7 @@ int main() { ab.add_function("ln", function_ln, "(num)->num"); ab.add_function("exp", function_exp, "(num)->num"); + ab.add_function("sqrt", function_sqrt, "(num)->num"); ab.add_function("sin", function_sin, "(num)->num"); ab.add_function("cos", function_cos, "(num)->num"); diff --git a/src/other_functions.cpp b/src/other_functions.cpp index beeafe8..45c9a97 100644 --- a/src/other_functions.cpp +++ b/src/other_functions.cpp @@ -2,4 +2,4 @@ FUNCTION_MPFR(ln, log); FUNCTION_MPFR(exp, exp); - +FUNCTION_MPFR(sqrt, sqrt);