Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use Python 2.4. Write a routine for estimating the condition number of a matrix A. You may use either the 1-norm or the -norm

Please use Python

image text in transcribed

image text in transcribed

2.4. Write a routine for estimating the condition number of a matrix A. You may use either the 1-norm or the -norm (or try both and compare the results). You will need to compute A, which is easy, and estimate A1, which is more challenging. As discussed in Section 2.3.3, one way to estimate A1 is to choose a vector y such that the ratio z/y is large, where z is the solution to Az=y. Try two different approaches to choosing y : (a) Choose y as the solution to the system ATy= c, where c is a vector each of whose components is \pm 1 , with the sign for each component chosen by the following heuristic. Using the factorization A=LU, the system ATy=c is solved in two stages, successively solving the triangular systems UTv=c and LTy=v. At each step of the first triangular solution, choose the corresponding component of c to be 1 or -1 , depending on which will make the resulting component of v larger in magnitude. (You will need to write a custom triangular solution routine to implement this.) Then solve the second triangular system in the usual way for y. The idea here is that any ill-conditioning in A will be reflected in U, resulting in a relatively large v. The relatively well-conditioned unit triangular matrix L will then preserve this relationship, resulting in a relatively large y. (b) Choose some small number, say, five, different vectors y randomly and use the one producing the largest ratio z/y. (For this you can use an ordinary triangular solution routine.) You may use a library routine to obtain the necessary LU factorization of A. Test both of the approaches on each of the following matrices: A1=1035721065,A2=739280786637242510. How do the results using these two methods compare? To check the quality of your estimates, compute A1 explicitly to determine its true norm (this computation can also make use of the LU factorization already computed). If you have access to linear equations software that already includes a condition estimator, how do your results compare with its

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 23rd European Conference Adbis 2019 Bled Slovenia September 8 11 2019 Proceedings Lncs 11695

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Aida Kamisalic Latific

1st Edition

3030287297, 978-3030287290

Students also viewed these Databases questions

Question

1.what is dew ?

Answered: 1 week ago

Question

1.The difference between climate and weather?

Answered: 1 week ago

Question

1. What is Fog ?

Answered: 1 week ago

Question

How water vapour forms ?

Answered: 1 week ago

Question

What is Entrepreneur?

Answered: 1 week ago

Question

7. How will you encourage her to report back on the findings?

Answered: 1 week ago

Question

Were the decisions based on appropriate facts?

Answered: 1 week ago

Question

Were the right people involved in the decision-making process?

Answered: 1 week ago