how can i solve nonliner equation?
1 view (last 30 days)
Show older comments
Mariam Sordia
on 18 Oct 2020
Commented: Mariam Sordia
on 18 Oct 2020
I tryed to find roots of nonliner equation by use all posible codes: fsolve, fzero, fixed pointes, raphson method.
Equation is: x^2-x+1.
Help me.
2 Comments
Accepted Answer
Alan Stevens
on 18 Oct 2020
look at documentation on the "roots" function, (ie type help roots).
4 Comments
Alan Stevens
on 18 Oct 2020
Notice that the roots are complex, which is why your Newton Raphson code didn't work. Try setting x0 = 1+1i in your code.
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!