diff options
author | Preston Pan <preston@nullring.xyz> | 2023-01-09 23:05:10 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2023-01-09 23:05:10 -0800 |
commit | 545f3a7a3e148324981c7a3bffff8045ec60ea05 (patch) | |
tree | bbd8f1ce1a656047139efcf1a073220546d0dfd7 /doc | |
parent | 43f11a93385c4848bfad49510bdea2849f241816 (diff) |
add exp function
Diffstat (limited to 'doc')
-rw-r--r-- | doc/main.nxs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/main.nxs b/doc/main.nxs index cb6985d..9eaeffc 100644 --- a/doc/main.nxs +++ b/doc/main.nxs @@ -1,4 +1,5 @@ (include "fib.nxs") +(include "../stdlib/math.nxs") (bind factorial (lambda (n) (if (= n 0) 1 (* n (factorial (- n 1)))))) @@ -6,4 +7,5 @@ (print (fib 7)) (print (+ (factorial 5) 10)) +(exp 3) (print (quote (+ (3 2) 4))) |