r=sqrt(2)*sinθ与r^2=cos2θ
程序如下:
th=0:0.05:2*pi;
r1=3*cos(th); r2=1+cos(th);
polar(th,r1,'b');
hold on; polar(th,r2,'r') ; hold off;
s1=int(1/2*r2.^2,th,0,pi/3);
s2=int(1/2*r1.^2,th,pi/3,pi/2);
但出现了这个问题:
Function 'int' is not defined for values of class 'double'.
希望哪位大侠能够求解,谢谢!!!