/usr/share/axiom-20170501/input/intlinear4.input is in axiom-test 20170501-3.
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 | )set break resume
)sys rm -f intlinear4.output
)spool intlinear4.output
)set message test on
)set message auto off
)clear all
--S 1 of 10
Rn ==> Fraction(Integer)
--R
--R Type: Void
--E 1
--S 2 of 10
ET := Expression(Complex(Integer))
--R
--R
--R (2) Expression(Complex(Integer))
--R Type: Domain
--E 2
--S 3 of 10
eql?(m:ET, n:ET):Boolean == zero?(m-n)
--R
--R Function declaration eql? : (Expression(Complex(Integer)),Expression
--R (Complex(Integer))) -> Boolean has been added to workspace.
--R Type: Void
--E 3
--S 4 of 10
intlinear4(a:ET, b:ET, m:ET, x:Symbol):ET ==
if eql?(m,0) or eql?(b,0) then
x*(a+b*x)^m
else if eql?(m,1) then
(a*x+1/2*b*x^2)
else if eql?(m,-1) then
log(a+b*x)/b
else
(a+b*x)^(1+m)/(b*(1+m))
--R
--R Function declaration intlinear4 : (Expression(Complex(Integer)),
--R Expression(Complex(Integer)),Expression(Complex(Integer)),Symbol)
--R -> Expression(Complex(Integer)) has been added to workspace.
--R Type: Void
--E 4
--S 5 of 10
intlinear4(A::ET, 0::ET, 0::ET, x::SYMBOL)
--R
--R Compiling function eql? with type (Expression(Complex(Integer)),
--R Expression(Complex(Integer))) -> Boolean
--R Compiling function intlinear4 with type (Expression(Complex(Integer)
--R ),Expression(Complex(Integer)),Expression(Complex(Integer)),
--R Symbol) -> Expression(Complex(Integer))
--R
--R (5) x
--R Type: Expression(Complex(Integer))
--E 5
--S 6 of 10
intlinear4(A::ET, B::ET, 0::ET, x::SYMBOL)
--R
--R
--R (6) x
--R Type: Expression(Complex(Integer))
--E 6
--S 7 of 10
intlinear4(A::ET, 0::ET, M::ET, x::SYMBOL)
--R
--R
--R M
--R (7) x A
--R Type: Expression(Complex(Integer))
--E 7
--S 8 of 10
intlinear4(A::ET, B::ET, 1::ET, x::SYMBOL)
--R
--R
--R 2
--R B x + 2A x
--R (8) -----------
--R 2
--R Type: Expression(Complex(Integer))
--E 8
--S 9 of 10
intlinear4(A::ET, B::ET, (-1)::ET, x::SYMBOL)
--R
--R
--R log(B x + A)
--R (9) ------------
--R B
--R Type: Expression(Complex(Integer))
--E 9
--S 10 of 10
intlinear4(A::ET, B::ET, M::ET, x::SYMBOL)
--R
--R
--R M + 1
--R (B x + A)
--R (10) --------------
--R B M + B
--R Type: Expression(Complex(Integer))
--E 10
)spool
)lisp (bye)
|