I'm currently using a Newton-Raphson function that takes a function as a parameter
Code: Select all
typedef double (*func)(double)
inline double NewthonRaphson( func f, double x0)
{
//do NR stuff
...
return NewtonRaphson(f, x0);
}
Is there a way to make that working without using static functions?
Thanks,
Luca