aboutsummaryrefslogtreecommitdiff
path: root/stemlib/math.stem
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2024-01-20 16:37:26 -0800
committerPreston Pan <preston@nullring.xyz>2024-01-20 16:37:26 -0800
commitff43bd2fb2c2617b53a0157d62d07cf96b2ef92f (patch)
tree3dbd2aa8f7c1af171edb232fb56c00879b3876ab /stemlib/math.stem
parenta9d6c221d7686e3055593359b02125a3f20ab3e5 (diff)
add more detailed error messages; fix a couple bugs
Diffstat (limited to 'stemlib/math.stem')
-rw-r--r--stemlib/math.stem4
1 files changed, 2 insertions, 2 deletions
diff --git a/stemlib/math.stem b/stemlib/math.stem
index 1a6f931..0444717 100644
--- a/stemlib/math.stem
+++ b/stemlib/math.stem
@@ -1,2 +1,2 @@
-factorial [ dup 0 <= [ 1 + ] [ dup 1 - factorial * ] if ] func
-PI 3.1415926 func
+factorial [ dup 0 <= [ 1 + ] [ dup 1 - factorial * ] if ] def
+PI 3.1415926 def