You are on page 1of 4

Fı́sica computacional

Todos los problemas tiene que estar es su carpeta de tareas en


https://www.pythonanywhere.com

Todos los problemas deben entragarse en PYTHON

Fecha lı́mite de entrega: Miércoles 25 de abril 10:00 PM

1. Using five significant figures in the computations, determine d(sin x)/dx


at x = 0.8 from (a) the first forward difference approximation and (b) the
first central difference approximation. In each case, use h that gives the
most accurate result (this requires experimentation). Hint: chap 5.3 Ri-
chardson Extrapolation Numerical Methods in Engineering with Python
3.

2. Use polynomial interpolation to compute f and f ′ at x = 0, using the


data

x -2.2 -0.3 -0.8 1.9


f(x) 15.180 10.962 1.920 -2.040

Given that f (x) = x3 − 0,3x2 − 8,56x + 8,448, gauge the accuracy of the
result. Hint: chap 5.4 Richardson Extrapolation Numerical Methods in
Engineering with Python 3.

3. The crank AB of length R = 90 mm is rotating at a constant angular


speed of dθ/dt = 5000 rev/min. The position of the piston C can be
shown to vary with the angle θ as
p
x = R cosθ + 2,52 − sin2 θ (1)

Write a program that compute the acceleration of the piston at θ =


0◦ , 5◦ , 10◦, ..., 180◦ , using numerical differentiation to compute the acce-
leration.
4. The radar stations A and B, separated by the distance a = 500 m, track
the plane C by recording the angles α and β at one-second intervals. If
three successive readings are

t(s) 9 10 11
α [ ] 54.80 54.06 53.34

β [◦ ] 65.59 64.59 63.62

calculate the speed ν of the plane and the climb angle α at t = 10 s. The
coordinates of the plane can be shown to be

tanβ
x=a (2)
tanβ − tanα
tanα tanβ
y=a (3)
tanβ − tanα

5. Evaluate

π/2
dx
Z
√ (4)
0 sinx
with Romberg integration. Hint: Use the transformation sinx = t2 .
Hint: chap 6.3 Richardson Extrapolation Numerical Methods in Enginee-
ring with Python 3.

2
p
6. The period of a simple pendulum of length L is τ = 4 L/gh(θ0 ), where
g is the gravitational acceleration, θ0 represents the angular amplitude,
and

π/2

Z
H(θ0 p (5)
0 1 − sin2 (θ0 /2)sin2 θ

Compute h(15◦ ), h(30◦ ), and h(45◦ ), and compare these values with h(0)
= π/2 (the approximation used for small amplitudes).

7. Evaluate

π
ln(x) dx
Z
(6)
1 x2 − 2x + 2

with Gauss-Legendre quadrature. Use (a) two nodes; and (b) four nodes.
Hint: chap 6.4 Richardson Extrapolation Numerical Methods in Enginee-
ring with Python 3.

8. Use Gauss-Laguerre quadrature to evaluate


Z ∞
(1 − x2 )3 e−x dx (7)
0

Hint: chap 6.4 Richardson Extrapolation Numerical Methods in Enginee-


ring with Python 3.

9. Use Gauss-Chebyshev quadrature with six nodes to evaluate

π/2
dx
Z
√ (8)
0 sinx
Hint: chap 6.4 Richardson Extrapolation Numerical Methods in Enginee-
ring with Python 3.

10. Compute the approximate value of


Z 1Z 1
2 2
e−(x +y ) dx dy (9)
−1 −1

3
with Gauss-Legendre quadrature. Use integration order (a) two and (b)
three. (The “exact” value of the integral is 2.230 985.) Hint: chap 6.5 Ri-
chardson Extrapolation Numerical Methods in Engineering with Python
3.

You might also like