Add square root.

This commit is contained in:
Danila Fedorin 2018-08-18 17:41:32 -07:00
parent 5da9327e12
commit c5a968ad24
3 changed files with 4 additions and 1 deletions

View File

@ -60,6 +60,8 @@ FUNCTION(factorial);
FUNCTION(ln);
FUNCTION(exp);
FUNCTION(sqrt);
FUNCTION(sin);
FUNCTION(cos);
FUNCTION(tan);

View File

@ -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");

View File

@ -2,4 +2,4 @@
FUNCTION_MPFR(ln, log);
FUNCTION_MPFR(exp, exp);
FUNCTION_MPFR(sqrt, sqrt);