0% found this document useful (1 vote)
100 views

Numerical Methods Using Excel

The document contains the work of a student named John Carlo R. Agbuya on their MEP-CE final exam. It involves using numerical methods like forward divided differences, trapezoidal rule, Simpson's rule, and Euler's method to approximate derivatives and integrals of functions, as well as to solve initial value problems for ordinary differential equations. The student obtained final answers of 229.1897, 216.0258, 209.8168, 1.0056796, 1.0001192168, 4.428303, and y(5)=218.1941714, y'(5)=352.605547.
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
100 views

Numerical Methods Using Excel

The document contains the work of a student named John Carlo R. Agbuya on their MEP-CE final exam. It involves using numerical methods like forward divided differences, trapezoidal rule, Simpson's rule, and Euler's method to approximate derivatives and integrals of functions, as well as to solve initial value problems for ordinary differential equations. The student obtained final answers of 229.1897, 216.0258, 209.8168, 1.0056796, 1.0001192168, 4.428303, and y(5)=218.1941714, y'(5)=352.605547.
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 17

AGBUYA, JOHN CARLO R.

###

11787759 / MEP-CE FINAL EXAM

Numerical Differentiation
Given:

1A 〖
〖�(�)=5� 〗 ^2.3�
Approximate f'(1.25) @ step size of 0.1

� ℎ
Parameters: 1.25 0.1

f'(1.25)
Final Answer
FDD 229.1897

Forward Divided Difference


� 〖′ (�)= 〗 (𝑓(�+ℎ)
−𝑓(�))/ℎ

x + h = 1.35 f(1.35) - f(1.25)


f'(1.25) =
0.1
22.9189743
f'(1.25) =
0.1

f'(1.25) = 229.1897
AGBUYA, JOHN CARLO R. ###

11787759 / MEP-CE FINAL EXAM

Numerical Differentiation
Given:

1
1B 〖〖
〖〖 �(�)=� 〗 ^�−cos⁡
�(�)=5� ^2.3� (�)−2
Approximate
Approximate f'(1.5)
f'(1.25) @ step size of 0.05

� ℎ
Parameters: 1.25 0.05

f'(1.25)
Final Answer
FDD 216.0258

Forward Divided Difference


� 〖′ (�)= 〗 (𝑓(�+ℎ)
−𝑓(�))/ℎ

x + h = 1.3 f'(1.25) = f(1.3) - f(1.25)


0.05
f'(1.25) = 10.8012919
0.05
f'(1.25) = 216.0258
AGBUYA, JOHN CARLO R. ###

11787759 / MEP-CE FINAL EXAM

Numerical Differentiation
Given:
)−2
of 0.05
1C1 〖
〖�(�)=�
�(�)=5�〗〗^�−cos⁡
^2.3� (�)−2
Approximate
Approximate f'(1.5)
f'(1.25) @ step size of 0.025

� ℎ
Parameters: 1.25 0.025

f'(1.25)
Final Answer
FDD 209.8168

Forward Divided Difference


� 〖′ (�)= 〗 (𝑓(�+ℎ)
−𝑓(�))/ℎ

x + h = 1.275 f'(1.25) = f(1.275) - f(1.25)


0.025
f'(1.25) = 5.24542012
0.025
f'(1.25) = 209.8168
AGBUYA, JOHN CARLO R. Saturday, April 13, 2

11787759 / MEP-CE

Numerical Integration: Trapezoidal Method

Given:
2 ∫_0^(𝜋⁄2)▒ 〖 1/(1+sin⁡〖 (�) 〗⁡ )⁡𝑑� 〗

A
a b

0 1.5707963268

Trapezoidal Method
n h Area

1 1.5707963268 1.1780972451

6 0.2617993878 1.0056796 Final Answer

�=ℎ/2⁡⌊𝑓(𝑎)+2∑_(𝑖=1)^(𝑛−1)▒ 〖𝑓 (𝑎+𝑖ℎ)
+𝑓(𝑏) 〗⌋

For n=6, h= 0.2617993878 Area

f(a) 0 1 1.0056795802
f(a+h) 0.2617993878 0.7943953532

f(a+2h) 0.5235987756 0.6666666667

f(a+3h) 0.7853981634 0.5857864376

f(a+4h) 1.0471975512 0.5358983849

f(a+5h) 1.308996939 0.5086661901

f(b) 1.5707963268 0.5


Saturday, April 13, 2019

FINAL EXAM

idal Method

𝑑� 〗

(𝑎+𝑖ℎ)
AGBUYA, JOHN CARLO R.

11787759 / MEP-CE

Numerical Integration

Given:
2 ∫_0^(𝜋⁄2)▒ 〖 1/(1+sin⁡〖 (�) 〗⁡ )⁡𝑑� 〗

B
a b

0 1.5707963268

Simpson's 1/3 Rule


n h Area

6 0.2617993878 1.0001192168 Final Answer

�=ℎ/3⁡⌊𝑓(𝑎)+4∑_(𝑖(𝑜𝑑𝑑)=1)^(𝑛−1)▒𝑓(𝑎+𝑖ℎ)⁡
+2∑_(𝑖(�𝑣�𝑛)=2)^(𝑛−2)▒𝑓(𝑎+𝑖ℎ)⁡+𝑓(𝑏)⌋

For n=6, h= 0.261799 f(a) f(a+ih), i=odd f(a+ih), i=even

0 f(a) 0 1 1

1 f(a+h) 0.261799 0.794395 0.7943953532

2 f(a+2h) 0.523599 0.666667 0.6666666667

3 f(a+3h) 0.785398 0.585786 0.5857864376

4 f(a+4h) 1.047198 0.535898 0.5358983849

5 f(a+5h) 1.308997 0.508666 0.5086661901

6 f(b) 1.570796 0.5


Saturday, April 13, 2019

FINAL EXAM

ntegration

sin⁡〖 (�) 〗⁡ )⁡𝑑� 〗

Final Answer

f(b) Area

1.00011922

0.5
AGBUYA, JOHN CARLO R.

11787759 / MEP-CE

Simpson's Three-Eighth Rule

Given:

3 ∫_4^9▒ 〖 (�+1)/(�+2√�−3)⁡𝑑� 〗

a b

4 9

Simpson's 3/8 Rule


n h Area

6 0.8333333333 4.428303 Final Answer

�=3ℎ/8⁡⌊𝑓(�_0⁡)+3∑_(𝑖=1,4,7,…)^(𝑛−2)▒𝑓(�_𝑖⁡)⁡+3∑_(𝑖=2,5,8,
…)^(𝑛−1)▒𝑓(�_𝑖⁡)⁡+2∑_(𝑖=3,6,9,…)^(𝑛−3)▒𝑓(�_𝑖⁡)⁡+𝑓(�_𝑛)⌋

For n=6, h= 0.833333 f(x0) f(xi), i=1,4,7 f(xi), i=2,5,8

f(x0) 4 1 1

1 f(xi) 4.833333 0.936284 0.9362842036

2 f(xi) 5.666667 0.897551 0.8975509796

3 f(xi) 6.5 0.872192

4 f(xi) 7.333333 0.854757 0.8547570551

5 f(xi) 8.166667 0.842359 0.8423586137

6 f(xn) 9 0.833333
Saturday, April 13, 2019

FINAL EXAM

Three-Eighth Rule

+2√�−3)⁡𝑑� 〗

Final Answer

+3∑_(𝑖=2,5,8,
)⁡+𝑓(�_𝑛)⌋

f(xi), i=3,6,9 f(xn) Area

4.42830338

0.872192462

0.8333333333
AGBUYA, JOHN CARLO R. Saturday, April 13, 2019
11787759 / MEP-CE FINAL EXAM

ODE: EULER'S METHOD

Given: (𝑦+√(�^2+𝑦^2⁡))𝑑�⁡−�𝑑𝑦=0
4 y(1) =0, y(10)=?

Step h 𝑑𝑦/𝑑�=(𝑦+√(�^2+𝑦^2⁡))/�
0

i xi yi

0 1 0

1 2 1

2 3 2.6180339887

3 4 4.8179523118

4 5 7.5879407986

5 6 10.9229650156

6 7 14.8205241864

7 8 19.2792395169

8 9 24.2982902589

9 10 29.87715815 Final Answer


13, 2019
L EXAM

+𝑦^2⁡))/�
AGBUYA, JOHN CARLO R. Saturday, April 13, 2019
11787759 / MEP-CE FINAL EXAM

ODE: EULER'S METHOD

Given: 𝑦^′′−2𝑦^′+𝑦=⁡⁡�^�/�
5
y(1) =0, y'(1)=1, y(5)=?, y'(5)=?

𝑑𝑦/𝑑�=�
Step h 0

0.5 𝑑�/𝑑�=�^�/�−𝑦+2�

i xi yi zi

0 1 0 1

1 1.5 0.5 3.3591409142

2 2 2.1795704571 7.9621781852

3 2.5 6.1606595497 16.6818351667

4 3 14.5015771331 32.7198393506

5 3.5 30.8614968083 61.5364796218

6 4 61.6297366193 112.372989691

7 4.5 117.8162314646 200.755879826

8 5 218.1941714 352.605547 Final Answers


y(5) y'(5)=z(5)
13, 2019
L EXAM

−𝑦+2�

nswers

You might also like