aboutsummaryrefslogtreecommitdiff
path: root/stemlib/math.stem
diff options
context:
space:
mode:
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