matlab 计算结果用 matlab 算积分:>> syms x>> f = cos ( x ) / ( x ^ 2 + 4 ) ^ 2f =cos(x)/(x^2+4)^2>> a = int ( f ,0 ,199 )a =-1/16*sinh(2)*pi+1/32*cosh(2)*pi-1/32*i*cosint(199-2*i)*cosh(2)+199/316840*cos(199)+1/32*i*cosint(199+2*i)*cosh(2)-1/

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 22:55:46
matlab计算结果用matlab算积分:>>symsx>>f=cos(x)/(x^2+4)^2f=cos(x)/(x^2+4)^2>>a=int(f,0,199)a=-1/16*sinh(2)*pi

matlab 计算结果用 matlab 算积分:>> syms x>> f = cos ( x ) / ( x ^ 2 + 4 ) ^ 2f =cos(x)/(x^2+4)^2>> a = int ( f ,0 ,199 )a =-1/16*sinh(2)*pi+1/32*cosh(2)*pi-1/32*i*cosint(199-2*i)*cosh(2)+199/316840*cos(199)+1/32*i*cosint(199+2*i)*cosh(2)-1/
matlab 计算结果
用 matlab 算积分:
>> syms x
>> f = cos ( x ) / ( x ^ 2 + 4 ) ^ 2
f =
cos(x)/(x^2+4)^2
>> a = int ( f ,0 ,199 )
a =
-1/16*sinh(2)*pi+1/32*cosh(2)*pi-1/32*i*cosint(199-2*i)*cosh(2)+199/316840*cos(199)+1/32*i*cosint(199+2*i)*cosh(2)-1/32*sinint(199+2*i)*sinh(2)+1/16*sinint(199+2*i)*cosh(2)+1/16*sinint(199-2*i)*cosh(2)+1/16*i*cosint(199-2*i)*sinh(2)-1/16*i*cosint(199+2*i)*sinh(2)-1/32*sinint(199-2*i)*sinh(2)
>> vpa ( a )
ans =
.3985953053049064408851565791309e-1+0.*i
最后用 vpa ()算出来的数怎么这么怪呢?e-1+0.*i
这个函数积分,我用数学方法,从0积到正无穷,算出来好像是0.

matlab 计算结果用 matlab 算积分:>> syms x>> f = cos ( x ) / ( x ^ 2 + 4 ) ^ 2f =cos(x)/(x^2+4)^2>> a = int ( f ,0 ,199 )a =-1/16*sinh(2)*pi+1/32*cosh(2)*pi-1/32*i*cosint(199-2*i)*cosh(2)+199/316840*cos(199)+1/32*i*cosint(199+2*i)*cosh(2)-1/
>> clear
>> syms x
f = cos ( x ) / ( x ^ 2 + 4 ) ^ 2;
>> a = int ( f , 0 , inf )

a =

(3*pi)/(32*exp(2))
函数积分,0到正无穷,算出来好像不是0