Main MRPT website > C++ reference for MRPT 1.5.7
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

◆ F5

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

◆ SWAP

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

◆ TwoPi

#define TwoPi   6.28318530717958648

Definition at line 21 of file poly_roots.cpp.

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

Function Documentation

◆ CSqrt()

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

Definition at line 61 of file poly_roots.cpp.

Referenced by SolveP4Bi(), and SolveP4De().

◆ dblSort3()

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

Definition at line 118 of file poly_roots.cpp.

References SWAP.

Referenced by SolveP4De().

◆ N4Step()

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().

◆ SolveP4Bi()

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

Definition at line 73 of file poly_roots.cpp.

References CSqrt().

Referenced by SolveP4De().

◆ 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().

◆ SolveP5_1()

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

◆ eps

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.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019