Laguerre:

Path: FormationFlying/Collision

% Finds the polynomial roots using Laguerre's method.
 There is a fix in place to force the return of real roots as Laguerre finds
 any root, real or imaginary.

--------------------------------------------------------------------------
   Form:
   x = Laguerre(p, xGuess)
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   
   p         (1,7)      Vector containing the coefficients of the polynomial. 
                        The coefficients are ordered as follows 
                        Sum p[i] x^i, i=0...mP
   xGuess    (1)        Initial guess for the root

   -------
   Outputs
   -------
   x         (1)        root

--------------------------------------------------------------------------
  Reference: http://mathworld.wolfram.com/LaguerresMethod.html
--------------------------------------------------------------------------

Back to the FormationFlying Module page