expr-deriv: new code for analytic derivative of spreadsheet expressions.
commitb444765b7a27a2862b6e740bf901ad8d983ced89
authorMorten Welinder <terra@gnome.org>
Sun, 11 Sep 2016 22:37:47 +0000 (11 18:37 -0400)
committerMorten Welinder <terra@gnome.org>
Sun, 11 Sep 2016 22:37:47 +0000 (11 18:37 -0400)
tree4ec31abed7a061c99545e152c72771e87b4a6e85
parent80445709e26596197659a08bea35017db0b74c15
expr-deriv: new code for analytic derivative of spreadsheet expressions.

This can generate some fairly impressive expressions for the derivative
of the function that an expression represents.

It is not particularly smart: it understands constants, +, -, *, /, ^,
and the functions sum and sumsq.  For anything else, it bails.  In case
you are wondering, those elements are enough to compute the square
residuals of rational models.
src/Makefile.am
src/expr-deriv.c [new file with mode: 0644]
src/expr-deriv.h [new file with mode: 0644]