求前輩指點迷津,感覺橢流線表達式有問題,又不知道哪里不對 9\BT0kx
0vD7v
程序如下 -7@/[9Gf`:
:fZ}o|t7
clearclc 8h*Icf
h=1000;N=100; tnN.:%mZ
R=100;for i=2:101 7>))D'l57
theata(i)=asin(sqrt((i-1)/N));end PuA9X[=
theata(1)=0;for i=1:101 !W}9no
% r(i)=R*sqrt((i-1)/N);r(i)=sqrt(R^2/i) )I^7)x
end% r(1)=0; jN;@=COi
a=zeros(101,1);c=zeros(101,1); 'mFqEn
x=zeros(101,1);y=zeros(101,1); 2j}\3Pi
a(1)=550;x(1)=-50; 3yU.& k
y(1)=0; 1Vrh4g.l
v50bdj9}k
for i=2:100 k=2*a(i-1); v,-HU&/*B
F=[h,r(i-1)/2-r(i)/2]; XY=((k^2-norm(F)^2)/(2*k-2*norm(F)*cos(pi-theata(i))))*[cos(pi-theata(i)),sin(theata(i))]; uXJ;A *
x(i)=XY(1); y(i)=XY(2); ;RC{<wBTx
FX=F-XY; a(i)=(norm(FX)+norm(XY))/2; UU;(rS/
i x(i) EIf5(/jo
y(i)end xSsa(b
plot(x,y)