From 5907934e467bf28291901ed3595125ef1ed724d9 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sun, 7 Jan 2024 18:37:30 -0800 Subject: add a lot of stuff and fix some bugs --- examples/math.stem | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 examples/math.stem (limited to 'examples/math.stem') diff --git a/examples/math.stem b/examples/math.stem new file mode 100644 index 0000000..1a6f931 --- /dev/null +++ b/examples/math.stem @@ -0,0 +1,2 @@ +factorial [ dup 0 <= [ 1 + ] [ dup 1 - factorial * ] if ] func +PI 3.1415926 func -- cgit