diff options
author | Preston Pan <preston@nullring.xyz> | 2023-12-10 15:15:47 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2023-12-10 15:15:47 -0800 |
commit | e48017a6c2c9b7c3d989d660a1561f1ebb415878 (patch) | |
tree | a71f37f5d93b159307f307323b58735cbf7b3096 /doc | |
parent | b253a58db000dad649654e8fb4a0cb2036c95118 (diff) |
Add more nxs functionsmaster
Diffstat (limited to 'doc')
-rw-r--r-- | doc/main.nxs | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/doc/main.nxs b/doc/main.nxs index 7967dbc..cddb7f3 100644 --- a/doc/main.nxs +++ b/doc/main.nxs @@ -1,8 +1,18 @@ (include "fib.nxs") (include "../stdlib/math.nxs") -(print (fib 7)) -(print (+ (factorial 5) 10)) +(print (fib 8)) +(print (factorial 5)) +(print (+(factorial 4) 8)) -(exp 3) -(print (quote (+ (3 2) 4))) +(bind x (lambda (y) (if (<= y 0) y (x (print (- y 1)))))) + +(x 5) + +(print (exp (/ 1.0 2.0))) +(print (sin 1.0)) +(print (cos 1.0)) +(print (tan 1.0)) +(print (sinh 1.0)) +(print (sin pi)) +(print (ln (exp 1.0))) |