#include <complex>
#include <cmath>
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::solveQuadratic (Type c0, Type c1, Type c2, Type &root0, Type &root1) |
This function computes the real roots of the quadratic polynomial c0*x^2 + c1*x + c2 = 0. | |
template<class Type > | |
void | dlr::numeric::solveQuadratic (Type c0, Type c1, Type c2, std::complex< Type > &root0, std::complex< Type > &root1) |
This function computes the (possibly complex) roots of the quadratic polynomial c0*x^2 + c1*x + c2 = 0. | |
template<class Type > | |
void | dlr::numeric::solveQuadratic (std::complex< Type > c0, std::complex< Type > c1, std::complex< Type > &root0, std::complex< Type > &root1) |
This function computes the roots of the quadratic polynomial x^2 + c0*x + c1 = 0, where c0 and c1 are complex. |
Copyright (C) 2001-2009 David LaRose, dlr@cs.cmu.edu See accompanying file, LICENSE.TXT, for details.
Definition in file solveQuadratic.h.