I'm trying to make a code that find the numerical derivation of a function. I also have a polynomial class described as follows:
class polynomial
{
public:
polynomial(Vector, int);
polynomial();
~polynomial();
double returnValue(double);
void print();
private:
int Degree;
Vector Coeficients;
};
my numerical derivation have the following prototype:
double numericalDerivation( double (*F) (double), double x);
I want to pass the returnValue method into the numericalDerivation, is that possible?