From a9d6c221d7686e3055593359b02125a3f20ab3e5 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sat, 20 Jan 2024 02:38:26 -0800 Subject: add map, filter might work? --- stemlib/math.stem | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 stemlib/math.stem (limited to 'stemlib/math.stem') 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 -- cgit