summaryrefslogtreecommitdiff
path: root/doc/main.nxs
blob: cddb7f3229147afc630432f26277385b6b543926 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(include "fib.nxs")
(include "../stdlib/math.nxs")

(print (fib 8))
(print (factorial 5))
(print (+(factorial 4) 8))

(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)))