主题:一个怪问题
这段程序
syms x y l1 l2 l3 l4 th1 th2 th3 th31 th32 be A B C D rp s c xa ya xp yp ass;
l1=3;l2=2;l3=3.5;l4=4;be=(15/180)*pi;
th1=0:0.01:2*pi;
A=2*l1.*l3.*sin(th1);
B=2*l3.*(l1.*cos(th1)-l4);
C=l2.^2-l1.^2-l3.^2-l4.^2+2*l1.*l4.*cos(th1);
p=(A+sqrt(A.^2+B.^2-C.^2))/(B-C)
为什么结果中p是个数 而不是个数组????高手们指教啊。。
syms x y l1 l2 l3 l4 th1 th2 th3 th31 th32 be A B C D rp s c xa ya xp yp ass;
l1=3;l2=2;l3=3.5;l4=4;be=(15/180)*pi;
th1=0:0.01:2*pi;
A=2*l1.*l3.*sin(th1);
B=2*l3.*(l1.*cos(th1)-l4);
C=l2.^2-l1.^2-l3.^2-l4.^2+2*l1.*l4.*cos(th1);
p=(A+sqrt(A.^2+B.^2-C.^2))/(B-C)
为什么结果中p是个数 而不是个数组????高手们指教啊。。