Numerical Differentiation Interpretation
Numerical Differentiation Interpretation
I. OBJECTIVE
1. Using GNU Octave, create a code that would solve the first,
second, third, and fourth derivative of equations of o(h) and
o(h2) using backward and forward finite-divided difference and
o(h2) and o(h4) using centered finite-divided difference.
2. Run the code, input the given and screenshot the command window.
3. Produce a Laboratory Report.
II. COMPUTER PROGRAM
PROBLEM:
IV. INTERPRETATION
Forward, Backward, and Centered finite-divided difference:
As noticed from the code, they are somewhat similar to each
other. The only difference is the formulas used to estimate the
function using the finite-divided difference methods. The function in
each method takes three inputs. X is the point at which to calculate
the derivatives, h is the step size, and func is the function for
which the derivatives are to be calculated. The codes approximate the
derivatives using the three finite difference formulas. The formulas
work by combining the function results with predetermined coefficients
after the function is evaluated at several places surrounding the
supplied point x. The first, second, third, and fourth derivatives,
respectively, are represented by the variables df1, df2, df3, and df4,
to which the computed derivatives are allocated. The user is prompted
by the code to specify the step size, function, and point. To compute
the derivatives, the code passes the supplied inputs to the function.
Lastly, the code uses the disp function to show the computed
derivatives.
V. RATING
Criteria Score
Ability to prepare a well –
written report