Set
The solution of the linear system
and set
Solve the perturbed system
Calculate the eigenvector, error and the condition number of A.
Answer to Problem 1E
The solution is
Solution of the perturbed system is
The condition number of A is
Explanation of Solution
Given: The matrix has been given
Concept Used:
Given,
To calculate the eigenvector, we use
Then compute the error from s vector
Calculate the perturb solution using given relation
Compute the error from s vector
Calculate the condition number using function “cond(A)” in MATLAB
Program:
clc clear close all A = round(10 * rand(6)); s = ones(6, 1); b = A * s; x = A \ b; fprintf('Solution to the system:\n'); disp(x); err = x - s; fprintf('Error:\n'); disp(err); t = 1.0e-12; E = rand(6) - 0.5; r = rand(6, 1) - 0.5; M = A + t * E; c = b + t * r; z = M \ c; fprintf('Solution to the perturbed system for t = %.12f:\n', t); disp(z); err = z - s; fprintf('Difference between the solutions:\n'); disp(err); t = 1.0e-04; E = rand(6) - 0.5; r = rand(6, 1) - 0.5; M = A + t * E; c = b + t * r; z = M \ c; fprintf('Solution to the perturbed system for t = %f:\n', t); disp(z); err = z - s; fprintf('Difference between the solutions:\n'); disp(err); t = 1.0e-02; E = rand(6) - 0.5; r = rand(6, 1) - 0.5; M = A + t * E; c = b + t * r; z = M \ c; fprintf('Solution to the perturbed system for t = %f:\n', t); disp(z); err = z - s; fprintf('Difference between the solutions:\n'); disp(err); fprintf('Condition number of A = %f', cond(A));
Quarry:
- First, we have defined the given matrix.
- Then compute the eigenvector.
- Calculate the error.
- Calculate the perturb solution at the given time interval.
- Calculate the condition vector of A.
Want to see more full solutions like this?
Chapter 7 Solutions
Linear Algebra with Applications (9th Edition) (Featured Titles for Linear Algebra (Introductory))
Additional Math Textbook Solutions
College Algebra (10th Edition)
Elementary & Intermediate Algebra
College Algebra: Graphs and Models (6th Edition)
Elementary Algebra: Concepts and Applications (10th Edition)
College Algebra Essentials (5th Edition)
Prealgebra (7th Edition)
- Find a system of two equations in two variables, x1 and x2, that has the solution set given by the parametric representation x1=t and x2=3t4, where t is any real number. Then show that the solutions to the system can also be written as x1=43+t3 and x2=t.arrow_forwardFind a system of two equations in three variables, x1, x2 and x3 that has the solution set given by the parametric representation x1=t, x2=s and x3=3+st, where s and t are any real numbers. Then show that the solutions to the system can also be written as x1=3+st,x2=s and x3=t.arrow_forwardUse Cramers rule to solve 2x-y+2z=6x-y+z=2x+y+2z=9.arrow_forward
- Algebra and Trigonometry (MindTap Course List)AlgebraISBN:9781305071742Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage LearningCollege AlgebraAlgebraISBN:9781305115545Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage Learning
- College Algebra (MindTap Course List)AlgebraISBN:9781305652231Author:R. David Gustafson, Jeff HughesPublisher:Cengage LearningAlgebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:CengageElementary Linear Algebra (MindTap Course List)AlgebraISBN:9781305658004Author:Ron LarsonPublisher:Cengage Learning