How can I use matlab to find the solution of an equation when equal to zero using variables without substituting with numbers?
86 views (last 30 days)
Show older comments
Ahmed Fahmy
on 25 Apr 2015
Commented: Star Strider
on 25 Apr 2015
I want to find how can I use matlab to find the solution of an equation when equal to zero using variables without substituting with numbers?
for example if the equation is : (x^2) - (y^2) = 0
the answer will be (x=y)
0 Comments
Accepted Answer
Roger Stafford
on 25 Apr 2015
That is what the 'solve' function of the Symbolic Toolbox endeavors to do. It is not always successful, but it capable of some remarkable results.
3 Comments
Star Strider
on 25 Apr 2015
You just have to ask it in a way it understands:
syms u v
v = solve([u^2 - v^2 == 0], v)
produces:
v =
u
-u
More Answers (0)
See Also
Categories
Find more on Number Theory in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!