1pm-3pm Class:
#1. Use zero-through third-order Taylor Series expansions to predict f(3) for
f(x) = 25x^3-6x^2+7x-88
Using a base point at x=1. Compute the true percent relative error (Et) for each approximation.
Note: 25x^3 is read as 25 times (x raised to 3). ^ signifies that the character on its left is raised to the no. on its right side.
Soln.
#2 Use Gauss-Jordan Elimination to solve:
2x1 + x2 - x3 = 1
5x1 + 2x2 - 2x3 = -4
3x1 + x2 + x3 = 5
Do not employ partial pivoting.
Soln.
#3. The following system of equations is designed to determine concentrations (the c's in g/m^3) in a series of coupled reactors as a function of the amount of mass input to each reactor(the right-hand sides in g/day)
15c1 - 3c2 - c3 = 3800
-3c1 + 18c2 - 6c3 = 1200
-4c1 - c2 - 12c3 = 2350
(a) Determine the matrix inverse
(b) Use the inverse to determine the solution
Answers:
You can use the numerical methods discussed in the class such as LU to compute the inverse.
(a)
Inverse:
0.0658949 0.0103888 - 0.0106857
0.0035619 0.0546156 - 0.0276046
- 0.0222618 - 0.0080142 - 0.0774711
(b)
0.0658949 0.0103888 - 0.0106857
0.0035619 0.0546156 - 0.0276046
- 0.0222618 - 0.0080142 - 0.0774711
(b)
if we have transform the system of equations to its matrix form Ax = B,
multiplying the result from (a) [inverse of matrix] with vector B, you can then find the solution
x1= 237.75601
x2= 14.203028
x3= - 276.26892
3-5pm Class
#1 Use zero-through fourth-order Taylor Series expansions to predict f(2.5) for f(x) = ln x using a base point at x =1. Compute the true relative error Et for each approximations.
x1= 237.75601
x2= 14.203028
x3= - 276.26892
3-5pm Class
#1 Use zero-through fourth-order Taylor Series expansions to predict f(2.5) for f(x) = ln x using a base point at x =1. Compute the true relative error Et for each approximations.
Answer:
zero-order:
f(2.5) = 0; Et = 100%
first-order:
f(2.5) = 1.5; Et = 63.704%
second-order:
f(2.5) = .375; Et = 59.074%
third-order:
f(2.5) = 1.5; Et = 63.704%
fourth-order:
f(2.5) = .234375; Et = 74.421%
#2. Given the system of equations:
f(2.5) = 0; Et = 100%
first-order:
f(2.5) = 1.5; Et = 63.704%
second-order:
f(2.5) = .375; Et = 59.074%
third-order:
f(2.5) = 1.5; Et = 63.704%
fourth-order:
f(2.5) = .234375; Et = 74.421%
#2. Given the system of equations:
-3x2 + 7x3 = 2
x1 + 2x2 - x3 = 3
5x1 - 2x2 = 2
(a) Compute the determinant
(c) Use Gauss Elimination with partial pivoting to solve for the x's.
Answers
(a) determinant = -69
(b) x1 = 0.9130
x2 = 1.4638
x3 = 0.9855
#3. Solve the following system of Equations using LU decomposition with partial pivoting:
(b) x1 = 0.9130
x2 = 1.4638
x3 = 0.9855
#3. Solve the following system of Equations using LU decomposition with partial pivoting:
2x1 - 6x2 - x3 = -38
-3x1 - x2 + 7x3 = -34
-8x1 + x2 - 2x3 = -20
Answer
x1= 4
x2 = 8
x3 = -2
x1= 4
x2 = 8
x3 = -2
0 comments:
Post a Comment