#include <stdio.h>
Go to the source code of this file.
Classes | |
struct | rpf_t |
struct | variables_t |
Enumerations | |
enum | rpf_type_t { TYPE_VALUE, TYPE_MATH, TYPE_VARIABLE, TYPE_OP, TYPE_MAX, TYPE_RPF, TYPE_START } |
Functions | |
int | formula (const char *expr, struct rpf_t **rpf, const struct variables_t *variable) |
double | formula_eval (struct rpf_t *rpf) |
void | formula_free (struct rpf_t *rpf) |
struct rpf_t * | formula_optimize (struct rpf_t *rpf) |
void | formula_print (FILE *stream, struct rpf_t *rpf) |
enum rpf_type_t |
Enumerator | |
---|---|
TYPE_VALUE | |
TYPE_MATH | |
TYPE_VARIABLE | |
TYPE_OP | |
TYPE_MAX | |
TYPE_RPF | |
TYPE_START |
Definition at line 39 of file formula-calc.h.
int formula | ( | const char * | expr, |
struct rpf_t ** | rpf, | ||
const struct variables_t * | variable | ||
) |
Definition at line 356 of file libformula-calc.c.
double formula_eval | ( | struct rpf_t * | rpf | ) |
Definition at line 639 of file libformula-calc.c.
void formula_free | ( | struct rpf_t * | rpf | ) |
Definition at line 618 of file libformula-calc.c.
Definition at line 670 of file libformula-calc.c.
void formula_print | ( | FILE * | stream, |
struct rpf_t * | rpf | ||
) |
Definition at line 755 of file libformula-calc.c.