/usr/share/axiom-20120501/input/pascal1.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 | )set break resume
)spool pascal1.output
)set message test on
)set message auto off
)clear all
--S 1 of 7
)set fun cache all
--R
--R In general, interpreter functions will cache all values.
--E 1
--S 2 of 7
p(m,n | m = 1) == 1
--R
--R Type: Void
--E 2
--S 3 of 7
p(m,n | m = n) == 1
--R
--R Type: Void
--E 3
--S 4 of 7
p(i,n | 1 < i and i < n) == p(i-1,n-1)+p(i,n-1)
--R
--R Type: Void
--E 4
--S 5 of 7
p(2,3)
--R
--R Compiling function p with type (Integer,Integer) -> PositiveInteger
--R p will cache all previously computed values.
--R
--R (4) 2
--R Type: PositiveInteger
--E 5
--S 6 of 7
pr(n) == [p(i,n) for i in 1..n]
--R
--R Type: Void
--E 6
--S 7 of 7
l := [center blankSeparate [p(i,n)::OUTFORM for i in 1..n] for n in 1..10] ;
--R
--R
--R Type: List(OutputForm)
--E 7
)spool
)lisp (bye)
|