solveQuadratic.h File Reference

Header file declaring a function for solving quadratic polynomial equations of a single variable. More...

#include <complex>
#include <cmath>

Include dependency graph for solveQuadratic.h:

This graph shows which files directly or indirectly include this file:

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.


Detailed Description

Header file declaring a function for solving quadratic polynomial equations of a single variable.

Copyright (C) 2001-2009 David LaRose, dlr@cs.cmu.edu See accompanying file, LICENSE.TXT, for details.

Revision
Date

Definition in file solveQuadratic.h.


Generated on Wed Nov 25 00:42:45 2009 for dlrUtilities Utility Library by  doxygen 1.5.8