MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
hermite.cc File Reference
#include <algorithm>
#include <cmath>
#include <sstream>
#include <stdexcept>
#include "fssr/hermite.h"
Include dependency graph for hermite.cc:

Go to the source code of this file.

Namespaces

namespace  fssr
 

Macros

#define EPSILON   1e-8
 

Functions

double fssr::find_root_cubic (double a0, double a1, double a2, double a3)
 Finds the root of a cubic function f(x) = a0 + a1 * x + a2 * x^2 + a3 * x^3.
 
double fssr::find_root_linear (double a0, double a1)
 Finds the root of a linear function f(x) = a0 + a1(x).
 
double fssr::find_root_square (double a0, double a1, double a2)
 Finds the root of a quadratic function f(x) = a0 + a1 * x + a2 * x^2.
 
double fssr::interpolate_root (double v0, double v1, double d0, double d1, InterpolationType type=INTERPOLATION_CUBIC)
 Interpolates the root of an unknown function f(x) given value and derivative constraints: f(0) = v0, f(1) = v1, f'(0) = d0, f'(1) = d1.
 

Macro Definition Documentation

◆ EPSILON

#define EPSILON   1e-8

Definition at line 17 of file hermite.cc.