0% found this document useful (0 votes)
11 views4 pages

Numerical Differentiation Interpretation

The document outlines a laboratory exercise for Math 130 focused on numerical differentiation using GNU Octave. The objective includes creating code to compute derivatives using various finite-divided difference methods and producing a laboratory report. It also details the problems to be solved, the structure of the code, and the interpretation of results from the computations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views4 pages

Numerical Differentiation Interpretation

The document outlines a laboratory exercise for Math 130 focused on numerical differentiation using GNU Octave. The objective includes creating code to compute derivatives using various finite-divided difference methods and producing a laboratory report. It also details the problems to be solved, the structure of the code, and the interpretation of results from the computations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Math 130

Numerical Solutions to CE Problems


LABORATORY

Group Members: Laboratory No. 1 Rating:


1. Geno Bucong
2. Casper Casimina Laboratory: Numerical
3. Justine Claide Differentiation Using GNU
Omalay Octave
4. Rodel Sabillo
5. Nicole Allen
Iremedio
Date Submitted:

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:

1. Forward finite-divided difference: y=x 3 +3 x−15 ; at x =0 , h=0.25


2. Backward finite-divided difference: y=e x + x ; at x =3 ,h=0.2
3. Centered finite-divided difference: y=2 x 4 −6 x 3−12 x−8 ; at x=2 , h=1

Code for o(h) and o(h2) of forward finite-divided difference:


Code for o(h) and o(h2) of backward finite-divided difference:

Code for o(h2) and o(h4) of centered fininte-divided difference:


III. FIGURES
Result for o(h) and o(h2) of forward finite-divided difference:

Result for o(h) and o(h2) of backward finite-divided difference:


Result for o(h2) and o(h4) of centered finite-divided difference:

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

Ability to write a computer


program to solve an engineering
program
Ability to interpret the results
correctly

You might also like