gistlib
other matlab categories
numerical-differentiation code snippets in matlab
numerically differentiate (ex – e -x )/2 at x = 0.2 using the following step size: 0.1, 0.05, 0.01, 0.005, and 0.001. use 4 th order accurate central differences for the 1 st derivative. in matlab
numerically differentiate (ex – e -x )/2 at x = 0.2 using the following step size: 0.1, 0.05, 0.01, 0.005, and 0.001. use 4th order accurate central differences for the 1st derivative in matlab
numerically differentiate cos(x) at x = 1 using the following step size: 0.1, 0.05, 0.01, 0.005, and 0.001. use 1st order accurate forward 1st derivative approximations. return the error and the value in matlab
gistlib
by LogSnag