programmer's documentation
Data Structures | Functions
mei_math_util.h File Reference

Provides mathemathical functions facilities. More...

#include <math.h>
Include dependency graph for mei_math_util.h:

Go to the source code of this file.

Data Structures

struct  mei_user_data_t
 Structure associated to a single user data set for 1D interpolation. More...
 

Functions

double mei_interp1d (const char *filename, const int c1, const int c2, const double x)
 Return the 1D interpolation if a value. More...
 
void mei_data_free (void)
 Destroy all user data set for 1D interpolation. More...
 
double mei_max (const double x1, const double x2)
 Return the max value from two doubles. More...
 
double mei_min (const double x1, const double x2)
 Return the min value from two doubles. More...
 

Detailed Description

Provides mathemathical functions facilities.

Function Documentation

void mei_data_free ( void  )

Destroy all user data set for 1D interpolation.

double mei_interp1d ( const char *  filename,
const int  c1,
const int  c2,
const double  x 
)

Return the 1D interpolation if a value.

Parameters
[in]filenamename of file of data
[in]c1column number of the file for abscisse
[in]c2column number of the file for ordinate
[in]xvariable to interpolate
Returns
interpolated value
double mei_max ( const double  x1,
const double  x2 
)

Return the max value from two doubles.

Parameters
[in]x1double
[in]x2double
Returns
max value
double mei_min ( const double  x1,
const double  x2 
)

Return the min value from two doubles.

Parameters
[in]x1double
[in]x2double
Returns
min value