This commit is contained in:
Ingy döt Net 2013-04-10 21:29:02 -07:00
parent 764da6cbbb
commit db842d013d
19005 changed files with 197040 additions and 7 deletions

View file

@ -0,0 +1,7 @@
exp =: */@:#~
10 exp 3
1000
10 exp 0
1

View file

@ -0,0 +1,4 @@
exp =: *@:] %: */@:(#~|)
10 exp _3
0.001

View file

@ -0,0 +1,6 @@
exp =: dyad def 'x *^:y 1'
10 exp 3
1000
10 exp _3
0.001

View file

@ -0,0 +1,4 @@
exp =: ^.^:_1
81 exp 0.5
9

View file

@ -0,0 +1,4 @@
exp =: %:^:_1~
81 exp 0.5
9

View file

@ -0,0 +1,6 @@
pi =: 3.14159265358979323846
e =: 2.71828182845904523536
i =: 2 %: _1 NB. Square root of -1
e^(pi*i)
_1

View file

@ -0,0 +1,4 @@
exp =: %:^:_1~
e exp (pi*i)
_1