Main Question or Discussion Point
Write a matlab program to compute f'(0) for f(x)=e^x and h=1;0.1;0.01....1E-9 using the forward and central difference formula. What is the optimal h?
The Attempt at a Solution
I have no clue how to write programs in matlab, if anyone can help me get started I would REALLY appreciate it.