I am trying to run the following algorithm, but it is not providing me the absolute answer as given in the link https://se​.mathworks​.com/help/​symbolic/s​olve-an-al​gebraic-eq​uation.ht

2 次查看(过去 30 天)
syms x
[solx, param, cond] = solve(cos(x) == -sin(x), x, 'ReturnConditions', true)

回答(1 个)

madhan ravi
madhan ravi 2018-11-22
Use vpasolve() for numerical solution
syms x
solx = vpasolve(cos(x) == -sin(x), x)
  1 个评论
HINA
HINA 2018-11-22
编辑:HINA 2018-11-22
Thanks for your answer, but the problem is that I can just get one solution by using this command but I am looking for all the solutions for the given function. Check t5he following link
https://se.mathworks.com/help/symbolic/solve-an-algebraic-equation.html

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Linear Algebra 的更多信息

产品


版本

R2013a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by