aboutsummaryrefslogtreecommitdiff
path: root/stemlib/math.stem
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2024-01-20 02:38:26 -0800
committerPreston Pan <preston@nullring.xyz>2024-01-20 02:38:26 -0800
commita9d6c221d7686e3055593359b02125a3f20ab3e5 (patch)
treeea9037ae83c28910f5fddf4844ffbb9563dbf94e /stemlib/math.stem
parent640f9a3f5be5528dd4f8ed658cfe4d06d833e4c9 (diff)
add map, filter might work?
Diffstat (limited to 'stemlib/math.stem')
-rw-r--r--stemlib/math.stem2
1 files changed, 2 insertions, 0 deletions
diff --git a/stemlib/math.stem b/stemlib/math.stem
new file mode 100644
index 0000000..1a6f931
--- /dev/null
+++ b/stemlib/math.stem
@@ -0,0 +1,2 @@
+factorial [ dup 0 <= [ 1 + ] [ dup 1 - factorial * ] if ] func
+PI 3.1415926 func