#include "Derivative.h" #include "myFunction.h" double derivative(double (*pf)(double t), double x, double h) { return ((*pf)(x+h) - (*pf) (x-h)) / (2*h); }