/usr/share/axiom-20170501/input/scherk.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 | )set break resume
)spool scherk.output
)set message test on
)set message auto off
)clear all
--S 1 of 7
(xOffset, yOffset):DoubleFloat
--R
--R Type: Void
--E 1
--S 2 of 7
drawScherk(m,n) ==
free xOffset, yOffset
space := create3Space()$ThreeSpace(DoubleFloat)
for i in 0..m-1 repeat
xOffset := i*%pi
for j in 0 .. n-1 repeat
rem(i+j, 2) = 0 => 'iter
yOffset := j*%pi
drawOneScherk(space)
makeViewport3D(space, "Scherk's Minimal Surface")
--R
--R Type: Void
--E 2
--S 3 of 7
scherk1(u,v) ==
x := cos(u)/exp(v)
point [xOffset + acos(x), yOffset + u, v, abs(v)]
--R
--R Type: Void
--E 3
--S 4 of 7
scherk2(u,v) ==
x := cos(u)/exp(v)
point [xOffset - acos(x), yOffset + u, v, abs(v)]
--R
--R Type: Void
--E 4
--S 5 of 7
scherk3(u,v) ==
x := exp(v) * cos(u)
point [xOffset + u, yOffset + acos(x), v, abs(v)]
--R
--R Type: Void
--E 5
--S 6 of 7
scherk4(u,v) ==
x := exp(v) * cos(u)
point [xOffset + u, yOffset - acos(x), v, abs(v)]
--R
--R Type: Void
--E 6
--S 7 of 7
drawOneScherk(s) ==
makeObject(scherk1, -%pi/2..%pi/2, 0..%pi/2, space == s, _
var1Steps == 28, var2Steps == 28)
makeObject(scherk2, -%pi/2..%pi/2, 0..%pi/2, space == s, _
var1Steps == 28, var2Steps == 28)
makeObject(scherk3, -%pi/2..%pi/2, -%pi/2..0, space == s, _
var1Steps == 28, var2Steps == 28)
makeObject(scherk4, -%pi/2..%pi/2, -%pi/2..0, space == s, _
var1Steps == 28, var2Steps == 28)
void()
--R
--R Type: Void
--E 7
)spool
)lisp (bye)
|