0% found this document useful (0 votes)
58 views1 page

Lictaoa Vizon Exercise9.1

This document contains an exercise on numerical differentiation using the forward and backward difference formulas. It calculates the value of J0(1.72) using both formulas, getting an approximate value of 0.386418 both times that matches the true value to 0.000027% accuracy.

Uploaded by

Raging Potato
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views1 page

Lictaoa Vizon Exercise9.1

This document contains an exercise on numerical differentiation using the forward and backward difference formulas. It calculates the value of J0(1.72) using both formulas, getting an approximate value of 0.386418 both times that matches the true value to 0.000027% accuracy.

Uploaded by

Raging Potato
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

LICTAOA, Redemptor C. EXERCISE 9.

1: Exercise on Numerical Differentiation


VIZON, Cyrus Alexander D. CH050P/B31

Formula for J0(x),
12
𝑥 𝑥 𝑥 𝑥 𝑥 𝑥
𝐽 𝑥 1 2 2 2 2
2 1! 2 2! 2 3! 2 4! 2 5! 212 6! 2

Forward Difference Formula
jf xj fj = ? ∆fj ∆2fj ∆3fj Approx Value True Value % abs error
0 1.7 0.397985
‐0.057998
1 1.8 0.339986 ‐0.000169
‐0.058168 0.000409 0.386418 0.386418 0.000027
2 1.9 0.281819 0.000240
‐0.057928
3 2.0 0.223891
Solving r, 
r = (x‐x0)/h = (1.72‐1.7)/0.1 = 0.2

Solving Approx. Value,
Approx. Value = fj+(∆fj*r)+(((r*(r‐1))/2!)*∆^2fj)+(((r*(r‐1)*(r‐2))/3!)*∆^3fj)
= 0.397985+(‐0.057998*0.2)+(((0.2*(0.2‐1))/2!)*‐0.000169)+(((0.2*(0.2‐1)*(0.2‐2))/3!)*0.000409)
= 0.386418

Solving True Value,
1.72 1.72 1.72 1.72 1.72 1.72 12
𝐽 1.72 1 2 2 2 2
2 1! 2 2! 2 3! 2 4! 2 5! 212 6! 2
= 0.386418

Backward Difference Formula
jb xj fj = ? ∇fj ∇2fj ∇3fj Approx Value True Value % abs error
‐3 1.7 0.397985
‐0.057998
‐2 1.8 0.339986 ‐0.000169
‐0.058168 0.000409 0.386418 0.386418 0.000027
‐1 1.9 0.281819 0.000240
‐0.057928
0 2.0 0.223891
Solving r, 
r = (x‐x0)/h = (1.72‐2.0)/0.1 = ‐2.8

Solving Approx. Value,
Approx. Value = fj+(∇fj*r)+(((r*(r+1))/2!)*∇^2fj)+(((r*(r+1)*(r+2))/3!)*∇^3fj)
= 0.223891+(‐0.057928*0.2)+(((0.2*(0.2+1))/2!)*0.000240)+(((0.2*(0.2+1)*(0.2+2))/3!)*0.000409)
= 0.386418

Solving True Value,
1.72 1.72 1.72 1.72 1.72 1.72 12
𝐽 1.72 1 2 2 2 2
2 1! 2 2! 2 3! 2 4! 2 5! 212 6! 2
= 0.386418

You might also like