matlab求含有多个参数的复杂函数的定积分
来源:学生作业帮 编辑:搜搜考试网作业帮 分类:综合作业 时间:2024/06/15 23:56:42
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.
那有什么方法可以求呢?
求函数函数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求含有多个参数的复杂函数的定积分](/uploads/image/z/3069953-17-3.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)
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用现有 的方法 求不出来
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用现有 的方法 求不出来