Unable to find explicit solution
2 次查看(过去 30 天)
显示 更早的评论
syms x y
A=(1-sqrt(1-x))^.5*tan((1-sqrt(1-x))^.5*y)
B=(1+sqrt(1-x))^.5*tan((1+sqrt(1-x))^.5*y)
solx=solve(A==B,x)
Hello,
I have this problem here, but when I run the code, it will give me a warning Unable to find explicit solution. I tried also to use vpasolve to solve it numerically but it did not work. Are there any alternatives to solve the problem?
0 个评论
回答(1 个)
John D'Errico
2022-11-9
编辑:John D'Errico
2022-11-9
Does a solution exist for EVERY possible function you can write down? (NO.) In fact, it is trivially easy to write down infinitely many sets of equations that have no solution.
syms x y
A=(1-sqrt(1-x))^.5*tan((1-sqrt(1-x))^.5*y);
B=(1+sqrt(1-x))^.5*tan((1+sqrt(1-x))^.5*y);
A - B
I'm not sure why you would expect to see an algebraic solution to that problem.
fimplicit(A-B)
Each blue line in that solution is an entire family of solutions to the problem. So, given any value for y, there are infinitely many possible solutions for x, given y. But there will be no simple algebraic solution, nothing nice and simple you can write down.
In general (I said this just the other day too) when you have a variable both inside and outside a trig function, you will never find an analytical solution. (There will surely be some rare counter-examples to that statement, but it is true in general.)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!