Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

APPLIED NUMERICAL METHODS WITH MATLAB – CHAPRA EXAMPLES

QUESTION 1:
(Problem 4.11) The Maclaurin series expansion for cos x is:
𝑥2 𝑥4 𝑥6 𝑥8
cos 𝑥 = 1 − + − + −⋯
2! 4! 6! 8!
Starting with the simplest version, cos x = 1, add terms one at a time to estimate cos(π/4). After
each new term is added, compute the true and approximate percent relative errors. Use your
pocket calculator or MATLAB to determine the true value. Add terms until the absolute value of
the approximate error estimate falls below an error criterion conforming to two significant
figures.

QUESTION 2:
(Problem 5.14) You buy a $35,000 vehicle for nothing down at $8,500 per year for 7 years. Use
the bisect function from Fig. 5.7 to determine the interest rate that you are paying. Employ initial
guesses for the interest rate of 0.01 and 0.3 and a stopping criterion of 0.00005. The formula
relating present worth P, annual payments A, number of years n, and interest rate i is
𝑖(𝑖 + 1)𝑛
𝐴 = 𝑃
(𝑖 + 1)𝑛 − 1

QUESTION 3:
(Problem 5.16) The resistivity ρ of doped silicon is based on the charge q on an electron, the
electron density n, and the electron mobility μ. The electron density is given in terms of the
doping density N and the intrinsic carrier density ni. The electron mobility is described by the
temperature T, the reference temperature T0, and the reference mobility μ0. The equations
required to compute the resistivity are
1
𝜌=
𝑞𝑛𝜇
where

1 𝑇 −2.42
𝑛 = 2 (𝑁 + √𝑁 2 + 4𝑛𝑖2 ) and 𝜇 = 𝜇0 (𝑇 )
0
Determine N, given T0 = 300 K, T = 1000 K, μ0 =1360 cm2 (V s)−1, q = 1.7 × 10−19 C, ni = 6.21
× 109 cm−3, and a desired ρ = 6.5 × 106 V s cm/C. Employ initial guesses of N = 0 and 2.5 ×
1010. Use (a) bisection and (b) the false position method.

You might also like