You answer a question of mine sayin about me showing you my ****. Babe im me I'm not shy at all.
How Can i Do Differentiation in C Programming language ???????????
double f_prime_at_x( double (*f)(double x), double x)
{
return (f(x+0.01) - f(x) / 0.01);
}
to csanon: see this link: http://www.newty.de/fpt/fpt.html#call
And indeed it is not optimal, but I think it is dishonorable to give away full source code to people when they haven't shown any effort at an optimal solution to begin with.
Reply:http://www.nrbook.com/a/bookcpdf.php
Look up numerical derivatives. The above answer's solution seems logical, but it's not optimal.
Also, to above answerer, check your use of function pointers. It's (*f) when calling it, as in (*f)(x).
song lyrics
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment