#include <math.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_complex.h>
#include <gsl/gsl_poly.h>
Go to the source code of this file.
Defines | |
#define | SWAP(a, b) do { double tmp = b ; b = a ; a = tmp ; } while(0) |
Functions | |
int | gsl_poly_complex_solve_cubic (double a, double b, double c, gsl_complex *z0, gsl_complex *z1, gsl_complex *z2) |
Definition at line 28 of file zsolve_cubic.cxx.
int gsl_poly_complex_solve_cubic | ( | double | a, | |
double | b, | |||
double | c, | |||
gsl_complex * | z0, | |||
gsl_complex * | z1, | |||
gsl_complex * | z2 | |||
) |
Definition at line 31 of file zsolve_cubic.cxx.
References A, acos(), B, cos(), ROOT::Math::fabs(), M_PI, norm(), pow(), ROOT::Math::Cephes::Q, R, r1, r2, sqrt(), SWAP, and theta.
Referenced by ROOT::Math::Polynomial::FindRoots().