33.5 Usage
To include the root tools into your FLASH development, add the line
REQUIRES numericalTools/Roots
into the Config file of the directory where the global API's of the interpolation
unit will be used. Another way would be to include the option
-with-unit=numericalTools/Roots
into your command line when you configure the code with setup.
Both ways will give you access to the following root tools:
- Roots_x2Polynomial: Finds all roots of a quadratic polynomial. The coefficient of
the leading quadratic term must be equal to 1. For ordering of the roots, please consult
the info in the header of this routine.
- Roots_x3Polynomial: Finds all roots of a cubic polynomial. The coefficient of
the leading cubic term must be equal to 1. For ordering of the roots, please consult
the info in the header of this routine.
- Roots_x4Polynomial: Finds all roots of a quartic polynomial. The coefficient of
the leading quartic term must be equal to 1. For ordering of the roots, please consult
the info in the header of this routine.