3 typeset -i m2 m1 M n2 n1 N m n
13 *) echo 1>&2 "Usage: $0 [m [n]]"
18 echo 'a = { ' # mathematica
20 let "M=1" # for (M=1; M<=MM; M++)
21 while let "M <= MM"; do
22 let "N=1" # for (N=1; N<=NN; N++)
23 while let "N <= NN"; do
32 let "m=1" # for(m=1; m<=MM; m++)
33 while let "m <= MM"; do
34 let "n=1" # for(n=1; n<=NN; n++)
35 while let "n <= NN"; do
37 let "x = (m-m1)*(m-M)*(m-m2)"
38 let "y = (n-n1)*(n-N)*(n-n2)"
40 if let "(x*x + (n-N)*(n-N)) * ((m-M)*(m-M) + y*y)"; then
48 echo -n " "; let "m=m+1" # ". "
66 while let "m <= MM"; do
68 while let "n <= NN"; do
77 echo 'x = LinearSolve[a,o] '