Canoe
Comprehensive Atmosphere N' Ocean Engine
root.hpp File Reference
#include <cmath>
#include <cstdio>
#include <cstdlib>

Go to the source code of this file.

Macros

#define MAX_IT   100
 
#define UNLIKELY_VAL   -1.11111e+30
 

Functions

template<typename FLOAT , typename FUNC >
int root (FLOAT x1, FLOAT x2, FLOAT xacc, FLOAT *x_root, FUNC func)
 

Macro Definition Documentation

◆ MAX_IT

#define MAX_IT   100

Definition at line 9 of file root.hpp.

◆ UNLIKELY_VAL

#define UNLIKELY_VAL   -1.11111e+30

Definition at line 12 of file root.hpp.

Function Documentation

◆ root()

template<typename FLOAT , typename FUNC >
int root ( FLOAT  x1,
FLOAT  x2,
FLOAT  xacc,
FLOAT *  x_root,
FUNC  func 
)

Definition at line 15 of file root.hpp.