expr-deriv: new code for analytic derivative of spreadsheet expressions.
[gnumeric.git] / src / expr-deriv.h
blobf939c0b4d37e3b999bc4e9d8afd54432889a0b4f
1 #ifndef GNM_EXPR_DERIV_H_
2 #define GNM_EXPR_DERIV_H_
4 G_BEGIN_DECLS
6 #include "expr.h"
7 #include "numbers.h"
9 /* ------------------------------------------------------------------------- */
11 typedef struct GnmExprDeriv_ GnmExprDeriv;
13 GnmExprDeriv *gnm_expr_deriv_info_new (void);
14 void gnm_expr_deriv_info_free (GnmExprDeriv *deriv);
16 void gnm_expr_deriv_info_set_var (GnmExprDeriv *deriv, GnmEvalPos const *var);
18 /* ------------------------------------------------------------------------- */
20 GnmExprTop const *gnm_expr_top_deriv (GnmExprTop const *texpr,
21 GnmEvalPos const *ep,
22 GnmExprDeriv *info);
24 GnmExprTop const *gnm_expr_cell_deriv (GnmCell *y, GnmCell *x);
26 gnm_float gnm_expr_cell_deriv_value (GnmCell *y, GnmCell *x);
28 /* ------------------------------------------------------------------------- */
30 G_END_DECLS
32 #endif