Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

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 program takes as input three double precision numbers, and returns the complex roots as a pair of values.



Previous fileTop of DocumentContentsIndexNext file

OEM Edition, OEM Edition, ©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.