#include <math.h>
#include "solvers.h"
Include dependency graph for solvers.c:
Go to the source code of this file.
Defines | |
#define | cbrt(x) ((x < 0) ? (-1*pow(-x, 1.0/3.0)) : pow (x, 1.0/3.0)) |
#define | M_PI 3.14159265358979323846 |
#define | EPS 1E-7 |
#define | AEQ0(x) (((x) < EPS) && ((x) > -EPS)) |
Functions | |
int | solve3 (double *coeff, double *roots) |
int | solve2 (double *coeff, double *roots) |
int | solve1 (double *coeff, double *roots) |
#define AEQ0 | ( | x | ) | (((x) < EPS) && ((x) > -EPS)) |
#define cbrt | ( | x | ) | ((x < 0) ? (-1*pow(-x, 1.0/3.0)) : pow (x, 1.0/3.0)) |
int solve1 | ( | double * | coeff, | |
double * | roots | |||
) |
int solve2 | ( | double * | coeff, | |
double * | roots | |||
) |
int solve3 | ( | double * | coeff, | |
double * | roots | |||
) |