problem


ejd141
09-18-2003, 04:32 PM
To anyone who could be of help:

I have a problem and I'm having trouble figuring it out. Here it is:

I need to write a program to compute approximate value for the derivative of a function using the finite-difference formula:

f'(x) = [f(x+h) - f(x)]/(h)

and then I must write another program using the centered difference approximation:

f'(x) = [f(x+h) - f(x-h)]/(2h)

If anyone could help it would be greatly appreciated! Thanks!