Add square root.
This commit is contained in:
parent
5da9327e12
commit
c5a968ad24
|
@ -60,6 +60,8 @@ FUNCTION(factorial);
|
|||
FUNCTION(ln);
|
||||
FUNCTION(exp);
|
||||
|
||||
FUNCTION(sqrt);
|
||||
|
||||
FUNCTION(sin);
|
||||
FUNCTION(cos);
|
||||
FUNCTION(tan);
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
FUNCTION_MPFR(ln, log);
|
||||
FUNCTION_MPFR(exp, exp);
|
||||
|
||||
FUNCTION_MPFR(sqrt, sqrt);
|
||||
|
|
Loading…
Reference in New Issue
Block a user