这是我根据之前别人发的宏拿来修改的其中一段 -"Kjn`8
FOR i,1,n_field,1 uUaDesz~=
hy=FLDY(i)/maxfield &gV9h>Kc#
[EPRBK`=
RAYTRACE 0,hy,0,1,PWAV() #lFsgb
FORMAT 2.0 #上光线 )sIzBC
PRINT "field number",i, .gNJY7`b
FOR j,1,n,1 c;b<z|}z
u(i,j)=-1*ASIN(RAYM(j-1)) {3os9r,
um(i,j)=-1*ASIN(RAYM(j)) @pvQci
r(i,j)=RADI(j) f
4K)Z
e
h(i,j)=RAYY(j) BThrv$D}
tmp(i,j)=0 C]ho7qC
IF r(i,j)!=0 THEN tmp(i,j)=ASIN(h(i,j)/r(i,j)) U>n.+/ss
ain(i,j)=tmp(i,j)-u(i,j) R90chl
JvT#Fxj k
AFU(i,j)=pi*ain(i,j) ]$)};8;7W
FORMAT 10.4 )MN 6\v
PRINT AFU(i,j), qoQ,3&<
ak}ke
运行后出现错误提示 %MtaWZ
Syntax error: Variable must be followed by = sign. h/aG."U
U(I , J) = - 1 * ASIN ( RAYM ( J - 1 ) ) :gkn`z
可是程序中是=号,怎么还会提示变量后必须跟=号 5 a&a-(
求大神指点下谢谢 jxw8jo06: