/usr/share/axiom-20170501/input/knot2.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 | )set break resume
)spool knot2.output
)set message test on
)set message auto off
)clear all
--S 1 of 7
f(x:SF):SF == x
--R
--R Function declaration f : DoubleFloat -> DoubleFloat has been added
--R to workspace.
--R Type: Void
--E 1
--S 2 of 7
[p,q] := [3,5]
--R
--R
--R (2) [3,5]
--R Type: List(PositiveInteger)
--E 2
--S 3 of 7
PQ := p/q
--R
--R
--R 3
--R (3) -
--R 5
--R Type: Fraction(Integer)
--E 3
--S 4 of 7
l := lcm(p, q) quo p
--R
--R
--R (4) 5
--R Type: PositiveInteger
--E 4
--S 5 of 7
maxRange := (odd? l => l * %pi; 2 * l * %pi)
--R
--R
--R (5) 5%pi
--R Type: Pi
--E 5
--S 6 of 7
theRange := 0..maxRange
--R
--R
--R (6) 0..(5%pi)
--R Type: Segment(Pi)
--E 6
--S 7 of 7
v:=draw(curve(sin t * cos(PQ*t),cos t * cos(PQ*t),cos t * sin(PQ*t)), _
t=theRange, tubeRadius==0.1)
--R
--I Compiling function %B with type DoubleFloat -> DoubleFloat
--I Compiling function %D with type DoubleFloat -> DoubleFloat
--I Compiling function %F with type DoubleFloat -> DoubleFloat
--R Transmitting data...
--R
--R (7) ThreeDimensionalViewport: "cos((3*t)/5)*sin(t)"
--R Type: ThreeDimensionalViewport
--E 7
)spool
)lisp (bye)
|