rest.tex 585 B

12345678910111213141516171819
  1. \subsection{ROOT\_VAL Operator}
  2. The {\tt ROOT\_VAL} operator takes a single univariate polynomial as
  3. argument, and returns a list of root values at system precision (or
  4. greater if required to separate roots). It is used with the syntax
  5. \begin{verbatim}
  6. ROOT_VAL(EXPRN:univariate polynomial):list.
  7. \end{verbatim}
  8. For example, the sequence
  9. \begin{verbatim}
  10. on rounded; root_val(x^3-x-1);
  11. \end{verbatim}
  12. gives the result
  13. \begin{verbatim}
  14. {0.562279512062*I - 0.662358978622, - 0.562279512062*I
  15. - 0.662358978622,1.32471795724}
  16. \end{verbatim}