Professional Documents
Culture Documents
Tarea 4 de Analisi Numerico
Tarea 4 de Analisi Numerico
Tarea 4 de Analisi Numerico
Departamento de Matemática
Tarea No. 4
20171000801
Sección: 1701
𝐹4 = 𝑓 % (62.5) = 8.1600
𝐹5 = 𝑓 % (62.5) = 9.0800
(b) Calculate an estimate for the stopping distance at 75 mph by using the results
from part (a) for the slope and the two-point central difference formula applied
at the speed of 62.5 mph. How does the estimate compares with tha data?
(a) Calculate the rate of change in the number of male and female physicians in
2006 by using the three point backward difference formula for the derivative,
with unequally spaced points eq. 8.37
(b)Use the data from 2008, 2006, together with the slopes in 2008 from part (a) to
estimate the year in which the number of female and male physicians will be equal. Use
the three-point central difference formula for the derivative (Eq. (8.36)) of a function
specified at unequally spaced points.
(a) Determine the heat flux at x= 0. Use the three-point forward differ- ence formula for
calculating the derivative.
El flujo de calor en 𝑥 = 0 es 6.7680𝑒 8 𝑊; 4
𝑚
(b)Determine the heat flux at x= L. Use the three-point backward difference formula for
calculating the derivative.
Cantidad de calor en 𝑥 = 0
Cantidad de calor en 𝑥 = 𝐿
(a) Simpson's 1 Simpson's 1/3 method. Divide the whole interval into six
subintervals.
p p p p
Al dividir el intervalo [0, p] en 6 subintervalo, A se optiene los siguientes puntos 0, , , ,
A B 4
4p 8p
B
, A
,p
p
Como 𝑓(𝑥) = 𝑠𝑖𝑛4 (𝑥) , 𝑎 = 0, 𝑏 =p y ℎ = 6
K
𝐼(𝐹)≈ B∗A M𝑓(𝑎) + 4 ∑A2P4,Q,A[𝑓(𝑥2 )] + 2 ∑TUV
2PB,8,WM𝑓(𝑥R )S + 𝑓(𝑏)S
K
𝐼(𝐹)≈ B∗A M𝑓(0) + 4 ∑A2P4,Q,A[𝑓(𝑥2 )] + 2 ∑TUV
2PB,8,M𝑓(𝑥R )S + 𝑓(p)S
K
𝐼(𝐹)≈ B∗A [𝑓(𝑎) + 4[𝑓(𝑥4 ) + 𝑓(𝑥Q ) + 𝑓(𝑥A )] + 2[𝑓(𝑥B ) + 𝑓(𝑥8 )] + 𝑓(p)]
K p p 8p p 2p
𝐼(𝐹)≈ B∗A X𝑠𝑖𝑛4 (0) + 4 X𝑠𝑖𝑛4 Y6Z + 𝑠𝑖𝑛4 Y2Z + 𝑠𝑖𝑛4 ( A ) [ + 2 X𝑠𝑖𝑛4 Y3Z + 𝑠𝑖𝑛4 Y 3 Z [ +
𝑠𝑖𝑛4 (p)[
𝐼(𝐹)≈ 1.5708
(b) Simpson's 3/8 method. Divide the whole interval into six subintervals.
The exact value of the integrals is I=p/2. Compare the results and discuss the
reasons for the differences.
B∗K
𝐼(𝐹)≈ ]∗A M𝑓(𝑎) + 3 ∑TUV TU4
2P4,8,][𝑓(𝑥2 ) + 𝑓(𝑥23V )] + 2 ∑2PQ,,W,V^M𝑓(𝑥R )S + 𝑓(𝑏)S
B∗K
𝐼(𝐹)≈ ]∗A M𝑓(0) + 3 ∑82P4,8,][𝑓(𝑥2 ) + 𝑓(𝑥23V )] + 2 ∑Q2PQM𝑓(𝑥R )S + 𝑓(p)S
B∗K
𝐼(𝐹)≈ ]∗A M𝑓(0) + 3[𝑓(𝑥4 ) + 𝑓(𝑥B ) + 𝑓(𝑥8 ) + 𝑓(𝑥A )] + 2M𝑓_𝑓(𝑥Q )`S + 𝑓(p)S
B∗K
𝐼(𝐹)≈ M𝑓(0) + 3[𝑓(𝑥4 ) + 𝑓(𝑥B ) + 𝑓(𝑥8 ) + 𝑓(𝑥A )] + 2M𝑓_𝑓(𝑥Q )`S + 𝑓(p)S
]∗A
B∗K p p 4p 8p p
𝐼(𝐹)≈ X𝑠𝑖𝑛4 (0) + 3 X𝑠𝑖𝑛4 Y Z + 𝑠𝑖𝑛4 Y Z + 𝑠𝑖𝑛4 Y Z + 𝑠𝑖𝑛4 Y Z[ + 2 X𝑠𝑖𝑛4 Y Z [ +
]∗A 6 3 B A 2
𝑠𝑖𝑛4 (p)[
𝐼(𝐹)≈ 1.5708
p
I= 4 = 1.5708 se obtienen valores exactos con las aproximaciones de Simpson
(a) Use ErrorFun to make a plot of the error function for0 ≤ 𝑥 ≤ 2. The spacing
between points on the plot should be 0.02.
(a)Use the user-defined function IntPointsTrap that
was written in Problem 9.19.
(b) UseMATLAB's built-in function trapz.
(c)Use MATLAB's built-in interpl function (with the spline option for the interpolation
method) to generate a new interpolated data set from the data that is given in the table.
For spacing divide the domain [O, 6370] into 50 equal subintervals (use the l in space
command). Calculate the mass of the Earth by integrating the interpolated data set
withMATLAB's built-in function trapz.
(a)The user-defined function SimpsonPoints that was written in Prob lem 9.20.