这是我根据之前别人发的宏拿来修改的其中一段 '~-IV0v9
FOR i,1,n_field,1 |kiJ}oy
hy=FLDY(i)/maxfield n<V1|X
qX>Q+_^
RAYTRACE 0,hy,0,1,PWAV() L&Qi@D0P
FORMAT 2.0 #上光线 %Ny) ?B
PRINT "field number",i, lj &>cScC
FOR j,1,n,1 {,O`rW_eS
u(i,j)=-1*ASIN(RAYM(j-1)) CBD_a#K{
um(i,j)=-1*ASIN(RAYM(j)) ;7G_f
r(i,j)=RADI(j) L*]E`Xxd9
h(i,j)=RAYY(j) SlT*C6f
tmp(i,j)=0 1(`M~vFDK
IF r(i,j)!=0 THEN tmp(i,j)=ASIN(h(i,j)/r(i,j)) [EHrIn
ain(i,j)=tmp(i,j)-u(i,j) ?)tK!'
e-D4'lu
AFU(i,j)=pi*ain(i,j) rcbP$tvz
FORMAT 10.4 nJ3vi}`
PRINT AFU(i,j), #GqTqHNE<
JE%A|R<Jl
运行后出现错误提示 ;MTz]c
Syntax error: Variable must be followed by = sign. Gm=>!.p
U(I , J) = - 1 * ASIN ( RAYM ( J - 1 ) ) 7$b?m6fmK
可是程序中是=号,怎么还会提示变量后必须跟=号 W$\X ~Q'0
求大神指点下谢谢 K^i"9D)A