summaryrefslogtreecommitdiffstats
path: root/arith.c
diff options
context:
space:
mode:
Diffstat (limited to 'arith.c')
-rw-r--r--arith.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arith.c b/arith.c
index 27ac3faf..4ee87055 100644
--- a/arith.c
+++ b/arith.c
@@ -1319,6 +1319,11 @@ val loga(val num)
return flo(log(c_flo(to_float(lit("log"), num))));
}
+val expo(val num)
+{
+ return flo(exp(c_flo(to_float(lit("exp"), num))));
+}
+
val sqroot(val num)
{
return flo(sqrt(c_flo(to_float(lit("sqrt"), num))));