void csm_free(csm_function *func)
free a function-structure
csm_bool csm_def_linear_offset(csm_function *func, double a)
re-define the offset of a linear function
int csm_bool
the boolean data type used in this module
double csm_dy(csm_function *func, double x)
compute delta-y from a given delta-x
struct csm_Function csm_function
the abstract csm function object
csm_bool csm_read_2d_table(char *filename, csm_function *func)
read parameters of two-dimensional function table
void csm_def_linear(csm_function *func, double a, double b)
define a linear function
double csm_x(csm_function *func, double y)
compute x from a given y
csm_function * csm_new_function(void)
create a new function object
void csm_pr_func(csm_function *func)
dump a new function object
void csm_clear(csm_function *func)
clear a function
csm_bool csm_fill_1d_table(double *x, double *y, int len, csm_function *func)
fill one-dimensional function table from double arrays.
csm_bool csm_read_1d_table(char *filename, csm_function *func)
read parameters of one-dimensional function table
double csm_dx(csm_function *func, double y)
compute delta-x from a given delta-y
double csm_z(csm_function *func, double x, double y)
compute z from a given x and y
void csm_init(void)
initialize the module
double csm_y(csm_function *func, double x)
compute y from a given x