matlab中怎么把积分函数 int 得到的不定积分式代入 solve 函数中进行计算?例如:syms r xfun=int(r*exp(-2*(r/2)^2),r,0,x);x=solve('fun-0.5','x');运行将会报错:Warning:Explicit solution could not be found.> In solve at 81
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/01 01:39:56
![matlab中怎么把积分函数 int 得到的不定积分式代入 solve 函数中进行计算?例如:syms r xfun=int(r*exp(-2*(r/2)^2),r,0,x);x=solve('fun-0.5','x');运行将会报错:Warning:Explicit solution could not be found.> In solve at 81](/uploads/image/z/3942439-7-9.jpg?t=matlab%E4%B8%AD%E6%80%8E%E4%B9%88%E6%8A%8A%E7%A7%AF%E5%88%86%E5%87%BD%E6%95%B0+int+%E5%BE%97%E5%88%B0%E7%9A%84%E4%B8%8D%E5%AE%9A%E7%A7%AF%E5%88%86%E5%BC%8F%E4%BB%A3%E5%85%A5+solve+%E5%87%BD%E6%95%B0%E4%B8%AD%E8%BF%9B%E8%A1%8C%E8%AE%A1%E7%AE%97%3F%E4%BE%8B%E5%A6%82%EF%BC%9Asyms+r+xfun%3Dint%28r%2Aexp%28-2%2A%28r%2F2%29%5E2%29%2Cr%2C0%2Cx%29%3Bx%3Dsolve%28%27fun-0.5%27%2C%27x%27%29%3B%E8%BF%90%E8%A1%8C%E5%B0%86%E4%BC%9A%E6%8A%A5%E9%94%99%EF%BC%9AWarning%3AExplicit+solution+could+not+be+found.%3E+In+solve+at+81)
matlab中怎么把积分函数 int 得到的不定积分式代入 solve 函数中进行计算?例如:syms r xfun=int(r*exp(-2*(r/2)^2),r,0,x);x=solve('fun-0.5','x');运行将会报错:Warning:Explicit solution could not be found.> In solve at 81
matlab中怎么把积分函数 int 得到的不定积分式代入 solve 函数中进行计算?
例如:
syms r x
fun=int(r*exp(-2*(r/2)^2),r,0,x);
x=solve('fun-0.5','x');
运行将会报错:
Warning:Explicit solution could not be found.
> In solve at 81
但是如果是运行
x=solve('int(r*exp(-2*(r/2)^2)-0.5,r,0,x)','x');
又会报错
Error using ==> solve>getEqns at 182
' int(r*exp(-2*(r/2)^2)-0.5,r,0,x) ' is not a valid expression or equation.
Error in ==> solve at 67
[eqns,vars] = getEqns(varargin{:});
matlab中怎么把积分函数 int 得到的不定积分式代入 solve 函数中进行计算?例如:syms r xfun=int(r*exp(-2*(r/2)^2),r,0,x);x=solve('fun-0.5','x');运行将会报错:Warning:Explicit solution could not be found.> In solve at 81
syms r x
fun=int(r*exp(-2*(r/2)^2),r,0,x);
x=solve(fun-0.5)
x =
2^(1/2)*log(2)^(1/2)
-2^(1/2)*log(2)^(1/2)