#include <complex>
#include <cmath>
#include <dlrCommon/constants.h>
Go to the source code of this file.
Namespaces | |
| namespace | dlr::numeric |
| This namespace contains code for 1D, 2D, and 3D arrays, matrices, coordinate transformations, rotation conversions, and much more. | |
Functions | |
| template<class Type > | |
| bool | dlr::numeric::solveCubic (Type c0, Type c1, Type c2, Type &root0, Type &root1, Type &root2) |
| This function computes the real roots of the cubic polynomial x^3 + c0*x^2 + c1*x + c2 = 0. | |
| template<class Type > | |
| void | dlr::numeric::solveCubic (Type c0, Type c1, Type c2, std::complex< Type > &root0, std::complex< Type > &root1, std::complex< Type > &root2) |
| This function computes the (possibly complex) roots of the cubic polynomial x^3 + c0*x^2 + c1*x + c2 = 0. | |
Copyright (C) 2001-2009 David LaRose, dlr@cs.cmu.edu See accompanying file, LICENSE.TXT, for details.
Definition in file solveCubic.h.
1.5.8