Finding Roots

root(f(var1, var2, ...), var1, [a, b]) Returns the value of var1 to make the function f equal to zero. If a and b are specified, root finds var1 on the interval [a,b]. Otherwise, var1 must be defined with a guess value before root is called. When a guess value is used, root uses the Secant or Mueller method; in the case where root bracketing is used, root uses the Ridder or Brent method.

polyroots(v) Returns a vector containing the roots of the polynomial whose coefficients are in v. By default, polyroots uses a LaGuerre method. If you want to use the Companion Matrix method instead, right-click on the polyroots function and select the desired method from the menu. LaGuerre's method is iterative and searches for solutions in the complex plane. The Companion Matrix method converts the equations into an eigenvalue problem.

Arguments:

The root function can only solve one equation in one unknown. To solve several equations simultaneously, use Find or Minerr.

Notes:

QuickSheet: root
QuickSheet: polyroots

Related Topics