matlab两次算出来的值不一样,是为什么
>>h=5;H=15;a=4;>>m=1;>>y=2.*(atan((h+H)./a)-atan(h./a)).*(1+1./4*(1./m.^2+1)+9./64.*(...
>> h=5;H=15;a=4;
>> m=1;
>> y=2.*(atan((h+H)./a)-atan(h./a)).*(1+1./4*(1./m.^2+1)+9./64.*(1./m.^2+1).^2+1./10.*(1./m.^2+1).^3)/sqrt(1./m.^2+1)+2.*(atan((h+H)./m.*a)-atan(h./a.*m)).*(1+1./(4.*(m.^2+1))+9./(64.*(m.^2+1).^2)+1./(10.*(m.^2+1).^3))./sqrt(m.^2+1);
>> y
y =
3.0306
>> clear
>> m=1
m =
1
>> y=2.*(atan(5)-atan(1.25)).*(1+1./4*(1./m.^2+1)+9./64.*(1./m.^2+1).^2+1./10.*(1./m.^2+1).^3)/sqrt(1./m.^2+1)+2.*(atan(5./m)-atan(1.25./m)).*(1+1./(4.*(m.^2+1))+9./(64.*(m.^2+1).^2)+1./(10.*(m.^2+1).^3))./sqrt(m.^2+1);
>> y
y =
2.7240
>>
>> clear
>> m=1
m =
1
>> y=2.*(atan(5)-atan(1.25)).*(1+1./4*(1./m.^2+1)+9./64.*(1./m.^2+1).^2+1./10.*(1./m.^2+1).^3)/sqrt(1./m.^2+1)+2.*(atan(5./m)-atan(1.25./m)).*(1+1./(4.*(m.^2+1))+9./(64.*(m.^2+1).^2)+1./(10.*(m.^2+1).^3))./sqrt(m.^2+1);
>> y
y =
2.7240 此时,当m=1时,Y为2.7240
再次输入以下>> clear
>> m=0.1:0.01:3;
>> y=2.*(atan(5)-atan(1.25)).*(1+1./4*(1./m.^2+1)+9./64.*(1./m.^2+1).^2+1./10.*(1./m.^2+1).^3)/sqrt(1./m.^2+1)+2.*(atan(5./m)-atan(1.25./m)).*(1+1./(4.*(m.^2+1))+9./(64.*(m.^2+1).^2)+1./(10.*(m.^2+1).^3))./sqrt(m.^2+1);
>> plot(m,y),后却发现y只有1.7361左右,这是为什么呢 展开
>> m=1;
>> y=2.*(atan((h+H)./a)-atan(h./a)).*(1+1./4*(1./m.^2+1)+9./64.*(1./m.^2+1).^2+1./10.*(1./m.^2+1).^3)/sqrt(1./m.^2+1)+2.*(atan((h+H)./m.*a)-atan(h./a.*m)).*(1+1./(4.*(m.^2+1))+9./(64.*(m.^2+1).^2)+1./(10.*(m.^2+1).^3))./sqrt(m.^2+1);
>> y
y =
3.0306
>> clear
>> m=1
m =
1
>> y=2.*(atan(5)-atan(1.25)).*(1+1./4*(1./m.^2+1)+9./64.*(1./m.^2+1).^2+1./10.*(1./m.^2+1).^3)/sqrt(1./m.^2+1)+2.*(atan(5./m)-atan(1.25./m)).*(1+1./(4.*(m.^2+1))+9./(64.*(m.^2+1).^2)+1./(10.*(m.^2+1).^3))./sqrt(m.^2+1);
>> y
y =
2.7240
>>
>> clear
>> m=1
m =
1
>> y=2.*(atan(5)-atan(1.25)).*(1+1./4*(1./m.^2+1)+9./64.*(1./m.^2+1).^2+1./10.*(1./m.^2+1).^3)/sqrt(1./m.^2+1)+2.*(atan(5./m)-atan(1.25./m)).*(1+1./(4.*(m.^2+1))+9./(64.*(m.^2+1).^2)+1./(10.*(m.^2+1).^3))./sqrt(m.^2+1);
>> y
y =
2.7240 此时,当m=1时,Y为2.7240
再次输入以下>> clear
>> m=0.1:0.01:3;
>> y=2.*(atan(5)-atan(1.25)).*(1+1./4*(1./m.^2+1)+9./64.*(1./m.^2+1).^2+1./10.*(1./m.^2+1).^3)/sqrt(1./m.^2+1)+2.*(atan(5./m)-atan(1.25./m)).*(1+1./(4.*(m.^2+1))+9./(64.*(m.^2+1).^2)+1./(10.*(m.^2+1).^3))./sqrt(m.^2+1);
>> plot(m,y),后却发现y只有1.7361左右,这是为什么呢 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询