Gistlib Logo

gistlib

other matlab categories

centered-finite-difference code snippets in matlab

suppose f(x) = cos(x), and we want to estimate f’(x) at xi=𝝅/2, (so f(xi )=0) using centered finite difference.what is the true value of f’(xi )? in matlab

gistlibby LogSnag