I am taking a Math/Cmpt class and I am useless with this program that we need to use Matlab.(adsbygoogle = window.adsbygoogle || []).push({});

Q: The derivative of a function f(x) can be approximated at the point x=x(sub)0 by a forward divided difference

f'(x(sub)0) ≈ [f(x(sub)0 + h) - f(x(sub)0)] / h

or by a central divided difference

f'(x(sub)0) ≈ [f(x(sub)0 + h) - f(x(sub)0)] / 2h

For the function f(x)= sin x, plot the error as a function of h when these divided differences are used to approximate f'(1) = cos1 for h = 10^-1, 10^-2, 10^-3, ..., 10^-16. Use loglog scale and display your results in one window using subplot.

As far and the loglog and subplot is concerned I understand what to do... it is the rest of the question that is causing a lot of difficulties. if there are any pointers on where to begin it would be much appreciated.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab loglog scale

Loading...

Similar Threads - Matlab loglog scale | Date |
---|---|

How to program this in Matlab | Feb 28, 2018 |

Matlab Making a short test for self-adjointness | Feb 23, 2018 |

Matlab Plotting Coordinate Transformations in Matlab | Feb 12, 2018 |

Want gray scale image of a matrix in matlab | Aug 14, 2015 |

**Physics Forums - The Fusion of Science and Community**