Menu

#99 Provide a derivative and integral function in pgfmath

Future
wont-fix
nobody
5
2019-12-01
2016-06-21
student
No

Some time ago there were two questions on TeX.sx of about how to plot the derivative of a function and how to plot the integral function numerically:

As suggested in a comment to the second question by Matthew Leingang, a simple solution just to provide the functions diff and int in pgfmath, as defined as follows:

diff(f(x)) = (f(x + h) - f(x))/h

where h is a small constant, say h = 0.001 by default.

Similar int should return the numerical integral. See Jakes answer in the second link for an example.

Discussion

  • Stefan Pinnow

    Stefan Pinnow - 2019-12-01
    • status: open --> wont-fix
     
  • Stefan Pinnow

    Stefan Pinnow - 2019-12-01
     
MongoDB Logo MongoDB