

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


AMSC/CMSC 460 Dr. Wolfe ASSIGNMENT #4 Due July 10, 2009
∫ (^) b a f^ (x)^ dx^ using the trapezoidal rule with n subdivisions, calling the result In. Use the program to calculate the following integrals with n = 2, 4 , 8 , 16 ,... , 512.
(a)
0
16 + x^2 dx (b)
0
x^3 /^8 dx
The exact value of the integral in (a) is 4.04128450518694. Analyze emperically the rate of convergence of In to I by calculating the ratios
Rn =
I 2 n − In I 4 n − I 2 n
and pn =
log(Rn) log(2)
In part (b) compute the extrapolated approximation to I,
I =˜I 4 n −
(I 4 n − I 2 n)^2 (I 4 n − I 2 n) − (I 2 n − In)
for n = 128.
I n(k )=
4 kI n(k −1)− I n/(k− 2 1) 4 k^ − 1
for n divisible by 2k.
∫ (^1)
0
f (x) dx ≈
i=
wif (
i 10
with the wi determined by requiring that the rule be exact for f (x) = 1, x, x^2 ,... x^10. (a) Use MATLAB to find the weights wi. (b) Apply the rule to the integrals in 1(a) and 1(b). Note the errors.
0
e−x^ cos^2 x dx =. 6
(a) Truncate the integral and use QUAD on the finite part. (b) Try the transformation x = − ln t on this integral and use QUADL on the new integral. (QUADL will complain but will do it). (c) Use the 2, 4 and 8 point Gauss-Laguerre rules to estimate the integral. compare your results with parts (a) and (b) above.
m πD
T 1
cρdT h(Ts − T )
(All quantities must be in consistent units.) Here T is the temperature in ◦F. T 1 = 0◦F is the inlet temperature. T 2 = 180◦F is the desired outlet temperature. Ts = 250◦F is the condensate temperature. m is the fluid flow rate = 45, 000 lb/hr. D is the diameter of the tube = 1.032 in. cρ is the specific heat of the fluid = (0.53 + 0. 00065 T ) BTU/(lb◦F). h is the local heat transfer coefficient = 0.^023 D k( (^) πDμ^4 m )^0.^8 ( μcρ k )
k is the thermal conductivity of the fluid = 0.153 BTU/(hr ft◦F). μ is the viscosity of the fluid and has units lb/(ft hr). μ varies with temperature so that T 0 50 100 150 200 μ 242 82.1 30.5 12.6 5. Use spline interpolation to define μ for other values of T and calculate the required length of the heat exchanger. You will need to use the MATLAB functions SPLINE and QUADL. The answer is about 158.7 ft.