# Function PolynomialRoots::roots

- Defined in File PolynomialRoots-Jenkins-Traub.cc

## Function Documentation

int PolynomialRoots::roots(valueType const *op, indexType Degree, valueType *zeror, valueType *zeroi)

  Find roots of a generic polynomial using Jenkins-Traub method

  Parameters

    - op – [in] the coefficients of the polynomial

    - Degree – [in] degree of the polynomial

    - zeror – [out] real part of the roots

    - zeroi – [out] imaginary part of the roots

  Returns

    error code, 0 OK