FINAL EXAM IN NUMERICAL A
Problem 1. Using Secant Method, determine p_6 for the function x - x with p_0 = 0.5 and p_1 = π /4.
Solution:
π/4 =0.785398163
Problem 1. Using Secant Method, determine p_6 for the function x - x with p_0 = 0.5 and p_1 = π /4.
Pn-1 Pn f(Pn-1) f(Pn) (Pn-1)f(Pn)-(Pn)f(Pn)
0.50000000 0.785398163 0.37758256 -0.07829138153241 0.022344216468083
0.785398163 0.73638413886 -0.07829138 0.004517718484351 0.000221431562853
0.73638413886 0.73905813921 0.00451772 0.000045177 -0.000000121
0.73905813921 0.73908514934 0.00004518 -0.000000027 0.000000000
0.73908514934 0.73908513322 -0.00000003 0.000000000 0.000000000
Therefore the value of p_6 using the Secant Method is approximately equal to 0.739085133.
Problem 2. Let f(x) = x^2-6 with p_0 =3 and p_1=2 solve for p_3 using Secant Method.
Solution:
Pn-1 Pn f(Pn-1) f(Pn) (Pn-1)f(Pn)-(Pn)f(Pn)
3 2 3 -2 -2
2 2.4 -2 -0.24 0.096000000000001
Therefore the value of p_3 using the Secant Method is approximately equal to 2.454545455 or 2.45…
Submitted by: MARVELOUS C. VILLAFANIA Submitted to: Sir Mark Denise Y. Baquiran
FINAL EXAM IN NUMERICAL ANALYSIS
nd p_1 = π /4.
nd p_1 = π /4.
f(Pn)-f(Pn-1) Pn+1
-0.45587394 -0.049014024140793 0.736384138859207
0.08280910 0.002674000355135 0.739058139214342
-0.00447254 0.000027010 0.739085149337276
-0.00004520 -0.000000016 0.739085133215065
0.00000003 0.000000000 0.739085133215161
f(Pn)-f(Pn-1) Pn+1
-5 0.4 2.4
1.76 0.054545455 2.454545455
545455 or 2.45…
: Sir Mark Denise Y. Baquiran
P_2
P_3
P_4
P_5
P_6
P_2
P_3