MATLAB求积分的数值解我的程序及运行如下:>> syms x;>> y=inline('0.579/((2*pi*0.3176)^0.5*x^1.5)*exp(-(x-0.579)^2/(2*0.3176*x))','x');>> int(x*exp(-3*x)*y(x),x,0,inf)Warning:Explicit integral could not
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/02 01:22:23
![MATLAB求积分的数值解我的程序及运行如下:>> syms x;>> y=inline('0.579/((2*pi*0.3176)^0.5*x^1.5)*exp(-(x-0.579)^2/(2*0.3176*x))','x');>> int(x*exp(-3*x)*y(x),x,0,inf)Warning:Explicit integral could not](/uploads/image/z/3166886-38-6.jpg?t=MATLAB%E6%B1%82%E7%A7%AF%E5%88%86%E7%9A%84%E6%95%B0%E5%80%BC%E8%A7%A3%E6%88%91%E7%9A%84%E7%A8%8B%E5%BA%8F%E5%8F%8A%E8%BF%90%E8%A1%8C%E5%A6%82%E4%B8%8B%EF%BC%9A%26gt%3B%26gt%3B+syms+x%3B%26gt%3B%26gt%3B+y%3Dinline%28%26%2339%3B0.579%2F%28%282%2Api%2A0.3176%29%5E0.5%2Ax%5E1.5%29%2Aexp%28-%28x-0.579%29%5E2%2F%282%2A0.3176%2Ax%29%29%26%2339%3B%2C%26%2339%3Bx%26%2339%3B%29%3B%26gt%3B%26gt%3B+int%28x%2Aexp%28-3%2Ax%29%2Ay%28x%29%2Cx%2C0%2Cinf%29Warning%3AExplicit+integral+could+not)
MATLAB求积分的数值解我的程序及运行如下:>> syms x;>> y=inline('0.579/((2*pi*0.3176)^0.5*x^1.5)*exp(-(x-0.579)^2/(2*0.3176*x))','x');>> int(x*exp(-3*x)*y(x),x,0,inf)Warning:Explicit integral could not
MATLAB求积分的数值解
我的程序及运行如下:
>> syms x;
>> y=inline('0.579/((2*pi*0.3176)^0.5*x^1.5)*exp(-(x-0.579)^2/(2*0.3176*x))','x');
>> int(x*exp(-3*x)*y(x),x,0,inf)
Warning:Explicit integral could not be found.
ans =
int((81487005757734912*exp(-3*x)*exp(-(625*(x - 579/1000)^2)/(397*x)))/(198810802005279125*x^(1/2)),x == 0..Inf)
这是一个求泊松-逆高斯分布的积分,请问这个积分还有别的方法可以求出来吗?期盼!
所要求的积分如下:
MATLAB求积分的数值解我的程序及运行如下:>> syms x;>> y=inline('0.579/((2*pi*0.3176)^0.5*x^1.5)*exp(-(x-0.579)^2/(2*0.3176*x))','x');>> int(x*exp(-3*x)*y(x),x,0,inf)Warning:Explicit integral could not
用double() 化为数值型就可以了
>> syms x
y=inline('0.579/((2*pi*0.3176)^0.5*x^1.5)*exp(-(x-0.579)^2/(2*0.3176*x))','x');
A=int(x*exp(-3*x)*y(x),x,0,inf)
double(A)
Warning: Explicit integral could not be found.
A =
int(81487005757734912/(198810802005279125*x^(1/2)*exp(3*x)*exp((625*(x - 579/1000)^2)/(397*x))), x = 0..Inf)
ans =
0.0940
>>