Unable to find explicit solution using solve function
显示 更早的评论
Hello,
I am trying to solve for a rise time using the following equation. I am getting the error below when I run the code. I have tried rewriting this equation several ways in hopes of getting an explicit value but still haven't found a way that works yet. Please let me know of a possible solution if one such solution does exist. Thank you!
if true
eqn = t_rise*((2*exp(-(200000*t_rise)/L))/5 - 7/5) ==
92206878437459119621/5902958103587056517120000;
sol = solve(eqn, t_rise);
end
Yields the following output
if true
Warning: Unable to find explicit solution. For options, see help.
> In solve (line 317)
ans =
Empty sym: 0-by-1
end
回答(1 个)
Steven Beumer
2018-6-27
0 个投票
You might want to have a look at the productlog function to get an analytic solution without solve. You could fill in the general equation in wolfram alpha and get an analytic solution that you can use. Like : http://www.wolframalpha.com/input/?i=c*x*exp(-b*x)-d+%3D+a
类别
在 帮助中心 和 File Exchange 中查找有关 Equation Solving 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!