---
...new attempt. Thanks!
builtins.c | 7 +++++++
plan9/platform.h | 1 +
2 files changed, 8 insertions(+)
diff --git a/builtins.c b/builtins.c
index 8a34db6..3ed4edd 100644
--- a/builtins.c
@@ -419,9 +419,16 @@ BUILTIN("rand.float", rand_float)
return mk_double(cname(todouble(args[0]))); \
}
+BUILTIN("pow", pow)
+{
+ argcount(nargs, 2);
+ return mk_double(pow(todouble(args[0]), todouble(args[1])));
+}
+
BUILTIN_("sqrt", sqrt)
BUILTIN_("exp", exp)
BUILTIN_("log", log)
+BUILTIN_("log10", log10)
BUILTIN_("sin", sin)
BUILTIN_("cos", cos)
BUILTIN_("tan", tan)
diff --git a/plan9/platform.h b/plan9/platform.h
index 6c33e15..07e103d 100644
--- a/plan9/platform.h
+++ b/plan9/platform.h
@@ -27,6 +27,7 @@
#define sqrtf sqrt
#define expf exp
#define logf log
+#define log10f log10
#define sinf sin
#define cosf cos
#define tanf tan
--
2.40.1