Graphviz  2.41.20171026.1811
Macros | Functions
solvers.c File Reference
#include "config.h"
#include <math.h>
#include "solvers.h"
Include dependency graph for solvers.c:

Go to the source code of this file.

Macros

#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)
 

Macro Definition Documentation

#define AEQ0 (   x)    (((x) < EPS) && ((x) > -EPS))

Definition at line 31 of file solvers.c.

Referenced by solve1(), solve2(), and solve3().

#define cbrt (   x)    ((x < 0) ? (-1*pow(-x, 1.0/3.0)) : pow (x, 1.0/3.0))

Definition at line 24 of file solvers.c.

Referenced by solve3().

#define EPS   1E-7

Definition at line 30 of file solvers.c.

#define M_PI   3.14159265358979323846

Definition at line 27 of file solvers.c.

Referenced by solve3().

Function Documentation

int solve1 ( double *  coeff,
double *  roots 
)

Definition at line 100 of file solvers.c.

References AEQ0.

Referenced by solve2().

int solve2 ( double *  coeff,
double *  roots 
)

Definition at line 76 of file solvers.c.

References AEQ0, and solve1().

Referenced by solve3().

int solve3 ( double *  coeff,
double *  roots 
)

Definition at line 33 of file solvers.c.

References AEQ0, alpha, cbrt, M_PI, and solve2().