Previous fileTop of DocumentContentsIndex pageNext file
Apache C++ Standard Library User's Guide

20.3 Example Program: Roots of a Polynomial


NOTE -- This program is in the file complx.cpp.

The roots of a polynomial are given by the formula:

The following function takes as input three double precision numbers, and returns the complex roots as a pair of values.



Previous fileTop of DocumentContentsIndex pageNext file