From ff43bd2fb2c2617b53a0157d62d07cf96b2ef92f Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sat, 20 Jan 2024 16:37:26 -0800 Subject: add more detailed error messages; fix a couple bugs --- stemlib/math.stem | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stemlib/math.stem') 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 -- cgit