matlab求含有多个参数的复杂函数的定积分求函数函数y=1/t(x)对x的定积分,积分区间为(0,m);其中:t(x)=t+2(r-sqrt(r^2-(m/2-x)^2));我用的语句是:syms t r m x;y=1/(t+2(r-sqrt(r^2-(m/2-x)^2)));int_y=int(y,x,0,m)为
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/02 07:07:30
![matlab求含有多个参数的复杂函数的定积分求函数函数y=1/t(x)对x的定积分,积分区间为(0,m);其中:t(x)=t+2(r-sqrt(r^2-(m/2-x)^2));我用的语句是:syms t r m x;y=1/(t+2(r-sqrt(r^2-(m/2-x)^2)));int_y=int(y,x,0,m)为](/uploads/image/z/2542465-1-5.jpg?t=matlab%E6%B1%82%E5%90%AB%E6%9C%89%E5%A4%9A%E4%B8%AA%E5%8F%82%E6%95%B0%E7%9A%84%E5%A4%8D%E6%9D%82%E5%87%BD%E6%95%B0%E7%9A%84%E5%AE%9A%E7%A7%AF%E5%88%86%E6%B1%82%E5%87%BD%E6%95%B0%E5%87%BD%E6%95%B0y%3D1%2Ft%28x%29%E5%AF%B9x%E7%9A%84%E5%AE%9A%E7%A7%AF%E5%88%86%2C%E7%A7%AF%E5%88%86%E5%8C%BA%E9%97%B4%E4%B8%BA%EF%BC%880%2Cm%EF%BC%89%EF%BC%9B%E5%85%B6%E4%B8%AD%EF%BC%9At%28x%29%3Dt%2B2%28r-sqrt%28r%5E2-%28m%2F2-x%29%5E2%29%29%3B%E6%88%91%E7%94%A8%E7%9A%84%E8%AF%AD%E5%8F%A5%E6%98%AF%EF%BC%9Asyms+t+r+m+x%3By%3D1%2F%28t%2B2%28r-sqrt%28r%5E2-%28m%2F2-x%29%5E2%29%29%29%3Bint_y%3Dint%28y%2Cx%2C0%2Cm%29%E4%B8%BA)
matlab求含有多个参数的复杂函数的定积分求函数函数y=1/t(x)对x的定积分,积分区间为(0,m);其中:t(x)=t+2(r-sqrt(r^2-(m/2-x)^2));我用的语句是:syms t r m x;y=1/(t+2(r-sqrt(r^2-(m/2-x)^2)));int_y=int(y,x,0,m)为
matlab求含有多个参数的复杂函数的定积分
求函数函数y=1/t(x)对x的定积分,积分区间为(0,m);其中:
t(x)=t+2(r-sqrt(r^2-(m/2-x)^2));
我用的语句是:
syms t r m x;
y=1/(t+2(r-sqrt(r^2-(m/2-x)^2)));
int_y=int(y,x,0,m)
为什么求不出结果?而matlab提示:Warning:Explicit integral could not be found.
那有什么方法可以求呢?
matlab求含有多个参数的复杂函数的定积分求函数函数y=1/t(x)对x的定积分,积分区间为(0,m);其中:t(x)=t+2(r-sqrt(r^2-(m/2-x)^2));我用的语句是:syms t r m x;y=1/(t+2(r-sqrt(r^2-(m/2-x)^2)));int_y=int(y,x,0,m)为
Warning:Warning,unable to determine if r+1/2*m is between 0 and m; try to use assumptions or
set _EnvAllSolutions to true
Warning:Warning,unable to determine if -r+1/2*m is between 0 and m; try to use assumptions or
set _EnvAllSolutions to true
Warning:Warning,unable to determine if 1/2*m-1/2*(-t*(t+4*r))^(1/2) is between 0 and m; try to
use assumptions or set _EnvAllSolutions to true
Warning:Warning,unable to determine if 1/2*m+1/2*(-t*(t+4*r))^(1/2) is between 0 and m; try to
use assumptions or set _EnvAllSolutions to true
Warning:Explicit integral could not be found.
> In sym.int at 58
In Untitled at 6
int_y =
int(1/(t+2*r-(4*r^2-m^2+4*m*x-4*x^2)^(1/2)),x = 0 ..m)
你的这个 表达式 太复杂了.MATLAB用现有 的方法 求不出来
Warning: Explicit integral could not be found.
找不到解析解,程序没有问题。
实际上这是很正常的,例如一些看似简单的函数积分可能很麻烦。
例如:y=sin(x^2)...椭圆积分
改成这样就可以实现了。
syms t r m x;
int_y=int('1/(t+2(r-sqrt(r^2-(m/2-x)^2)))',x,0,m)
输出结果是:
int_y =
1/(t+2)*m