Main MRPT website > C++ reference for MRPT 1.5.6
Macros | Functions | Variables
poly_roots.cpp File Reference
#include "base-precomp.h"
#include <mrpt/math/poly_roots.h>
#include <cmath>
Include dependency graph for poly_roots.cpp:

Go to the source code of this file.

Macros

#define TwoPi   6.28318530717958648
 
#define SWAP(a, b)   { t=b; b=a; a=t; }
 
#define F5(t)   (((((t+a)*t+b)*t+c)*t+d)*t+e)
 

Functions

void CSqrt (double x, double y, double &a, double &b)
 
int SolveP4Bi (double *x, double b, double d)
 
static void dblSort3 (double &a, double &b, double &c)
 
int SolveP4De (double *x, double b, double c, double d)
 
double N4Step (double x, double a, double b, double c, double d)
 
static double SolveP5_1 (double a, double b, double c, double d, double e)
 

Variables

const double eps =1e-14
 

Macro Definition Documentation

#define F5 (   t)    (((((t+a)*t+b)*t+c)*t+d)*t+e)

Definition at line 238 of file poly_roots.cpp.

Referenced by SolveP5_1().

#define SWAP (   a,
  b 
)    { t=b; b=a; a=t; }

Definition at line 117 of file poly_roots.cpp.

Referenced by dblSort3(), and mrpt::math::solve_poly2().

#define TwoPi   6.28318530717958648

Definition at line 21 of file poly_roots.cpp.

Referenced by mrpt::math::solve_poly3().

Function Documentation

void CSqrt ( double  x,
double  y,
double &  a,
double &  b 
)

Definition at line 61 of file poly_roots.cpp.

Referenced by SolveP4Bi(), and SolveP4De().

static void dblSort3 ( double &  a,
double &  b,
double &  c 
)
static

Definition at line 118 of file poly_roots.cpp.

References SWAP.

Referenced by SolveP4De().

double N4Step ( double  x,
double  a,
double  b,
double  c,
double  d 
)

Definition at line 203 of file poly_roots.cpp.

Referenced by mrpt::math::solve_poly4().

int SolveP4Bi ( double *  x,
double  b,
double  d 
)

Definition at line 73 of file poly_roots.cpp.

References CSqrt().

Referenced by SolveP4De().

int SolveP4De ( double *  x,
double  b,
double  c,
double  d 
)

Definition at line 128 of file poly_roots.cpp.

References CSqrt(), dblSort3(), mrpt::math::solve_poly3(), and SolveP4Bi().

Referenced by mrpt::math::solve_poly4().

static double SolveP5_1 ( double  a,
double  b,
double  c,
double  d,
double  e 
)
static

Definition at line 240 of file poly_roots.cpp.

References eps, and F5.

Referenced by mrpt::math::solve_poly5().

Variable Documentation

const double eps =1e-14

Definition at line 22 of file poly_roots.cpp.

Referenced by mrpt::math::solve_poly2(), mrpt::math::solve_poly3(), and SolveP5_1().




Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018