/usr/share/axiom-20120501/input/curry.input is in axiom-test 20120501-8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | )set break resume
)sys rm -rf curry.output
)spool curry.output
)set message test on
)set message auto off
)clear all
--S 1 of 14
makeCurry := x +-> (y +-> gcd(x,y))
--R
--R
--R (1) x +-> y +-> gcd(x,y)
--R Type: AnonymousFunction
--E 1
--S 2 of 14
curried:=makeCurry(4)
--R
--R
--I (2) y +-> gcd(G1392,y)
--R Type: AnonymousFunction
--E 2
--S 3 of 14
curried(6)
--R
--R
--R (3) 1
--R Type: Polynomial(Integer)
--E 3
)clear all
--S 4 of 14
makeCurry(x:Integer):Integer->Integer == (y:Integer):Integer +-> gcd(x,y)
--R
--R Function declaration makeCurry : Integer -> (Integer -> Integer) has
--R been added to workspace.
--R Type: Void
--E 4
--S 5 of 14
curried:=makeCurry(4)
--R
--R Compiling function makeCurry with type Integer -> (Integer ->
--R Integer)
--R
--R (2) theMap(NIL,0)
--R Type: (Integer -> Integer)
--E 5
--S 6 of 14
curried(6)
--R
--R
--R (3) 2
--R Type: PositiveInteger
--E 6
)clear all
--S 7 of 14
gcd([4,6,8])
--R
--R
--R (1) 2
--R Type: PositiveInteger
--E 7
--S 8 of 14
fn(x:Integer,y:Integer,z:Integer):Integer == gcd([x,y,z])
--R
--R Function declaration fn : (Integer,Integer,Integer) -> Integer has
--R been added to workspace.
--R Type: Void
--E 8
--S 9 of 14
makeCurry1(x:Integer,y:Integer):(Integer->Integer) == z +-> fn(x,y,z)
--R
--R Function declaration makeCurry1 : (Integer,Integer) -> (Integer ->
--R Integer) has been added to workspace.
--R Type: Void
--E 9
--S 10 of 14
fn1:=makeCurry1(4,6)
--R
--R Compiling function fn with type (Integer,Integer,Integer) -> Integer
--R
--R Compiling function makeCurry1 with type (Integer,Integer) -> (
--R Integer -> Integer)
--R
--R (4) theMap(NIL,0)
--R Type: (Integer -> Integer)
--E 10
--S 11 of 14
fn1(8)
--R
--R
--R (5) 2
--R Type: PositiveInteger
--E 11
--S 12 of 14
makeCurry2(x:Integer):((Integer,Integer)->Integer) == (y,z) +-> fn(x,y,z)
--R
--R Function declaration makeCurry2 : Integer -> ((Integer,Integer) ->
--R Integer) has been added to workspace.
--R Type: Void
--E 12
--S 13 of 14
fn2:=makeCurry2(4)
--R
--R Compiling function makeCurry2 with type Integer -> ((Integer,Integer
--R ) -> Integer)
--R
--R (7) theMap(NIL,0)
--R Type: ((Integer,Integer) -> Integer)
--E 13
--S 14 of 14
fn2(6,8)
--R
--R
--R (8) 2
--R Type: PositiveInteger
--E 14
)spool
)lisp (bye)
|