PC_graph/math_functions.h
2024-11-28 17:30:29 +01:00

18 lines
329 B
C

#ifndef MATH_FUNCTIONS_H
#define MATH_FUNCTIONS_H
#include <stdlib.h>
#define MAX_MATH_FUNCTION_ARGS 2
typedef double (*math_function_ptr)(const double*);
struct math_function {
const char *name;
size_t num_args;
math_function_ptr ptr;
};
const struct math_function *fns_get(void);
#endif /* MATH_FUNCTIONS_H */