Concept explainers
Perform the same calculations as in (a) Example 11.1, and (b) Example 11.3, but for the tridiagonal system,
(a)
To calculate: The solution of following tridiagonal system with Thomas Algorithm:
Answer to Problem 1P
Solution:
The solution is
Explanation of Solution
Given:
A tridiagonal system:
Formula used:
(a) The decomposition is implemented as:
(2) Forward substitution is implemented as:
(3) Back substitution is implemented as:
For
Calculation:
Consider the system of equation:
Where,
First the decomposition is implemented as:
Now,
And,
And,
Thus, the matrix [A] is transformed to,
Now, the LU decomposition of the above matrix is,
The forward substitution is implemented as:
And,
Thus, the right-hand-side vector is modified to,
The right-hand-side vector can be used in conjunction with the [U] matrix to perform back substitution and obtain the solution as:
Also,
And,
Thus, the solution of the given system of equation is
(b)
To calculate: The solution of following tridiagonal system of equation with Gauss-Seidel method:
Answer to Problem 1P
Solution:
Using Gauss-Seidel method four iteration are performed to get
Explanation of Solution
Given:
A system of equation:
Formula used:
(1) The values of
(2) True percent relative error is given by,
(3) Convergence can be checked using the criterion
For all i, where j and j- 1 are the present and previous iterations.
Calculation:
The true solution is
Consider the system of equation:
Where,
First, solve each of the equations for its unknown on the diagonal
For initial guess, assume
Thus, equation (1) becomes,
This value, along with the assumed value of
Now, substitute the calculated values of
For the second iteration, the same process is repeated with
The true percent relative error is
Thus,
The value of
Thus,
Now, substitute the calculated values of
Thus,
For the third iteration, the same process is repeated with
The true percent relative error is
Thus,
The value of
Thus,
Now, substitute the calculated values of
Thus,
For the fourth iteration, the same process is repeated with
The true percent relative error is
Thus,
The value of
Thus,
Now, substitute the calculated values of
Thus,
The method is thus converging on the true solution.
Now, estimate the error:
Want to see more full solutions like this?
Chapter 11 Solutions
EBK NUMERICAL METHODS FOR ENGINEERS
- Recharge as follows: Draw the three projection Draw an entire sector O Draw a half of a sector 15 2x020 15 2XR20 20 30 89 45 45 105 015 25 15 50 15arrow_forward2. Find the function o(x, y, =) such that Vo=[2xy'+ yz]i +[3x y +xzli+[5z*+xy]k 3. An ant is traveling along the edge of a helix-shaped surface and the path. byarrow_forward2.x {x: (x- 2)(x+1) 20}arrow_forward
- Let XYZ = 728arrow_forwardExpress the following in complex exponential form: x[cos(yo)+jsin(yo)] Where x = 8 and y = 166. State the argument in radians.arrow_forwardResolve for the x and y component of F3. y F3%3D650 N 3) F, = 750 N %3D 45° F = 900 N X component of F3: [Choose] y component of F3: [ Choose ]arrow_forward
- 2 3 4 5 6 1. (Make a MatLab code) Using for loop, write a script that will generate the all following multiplication table at once: 4 6 8 10 12 5 7 9 11 10 14 18 22 10 13 16 20 26 32 17 21 34 42 26 52arrow_forwardis there a way to solve for x?arrow_forwardihài 25 Q3) Let vector A = 5i +2j, Vector B = -3i %3D -5j, and vector C = A+ B. (a) Write %3D vector C in component form. (b) Draw a coordinate system and on it show the all vectors. (c) What are the ?magnitude and direction of vector Carrow_forward
- * ifr = 8 sec0 then the cartesian equation is %D X^2+y^2=8 O Non of the above O y=8 (x-1)^2+y^2=64 O x=8 Oarrow_forwardQ6: The distance between projections of the points C and D is 6.5 cm, for the line CD. C (xc, 1.5) & D (2, yd), the point C is on the right of point D. The Horizontal trace H (7, 0) is on the right of point C by 3cm. Find: 1. the value of yc & yd 2. the coordinate of Vertical trace V. 3. The true length of the line AB. 4. The inclination of the line to the V.P and H.P.arrow_forwardGraph the function. f(x) = 2 + sin xarrow_forward
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY