Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program using the program MATHEMATICA the Jacobi Method which are described in full on page 34 of the text. Make sure your initial vectors match

Program using the program MATHEMATICA the Jacobi Method which are described in full on page 34 of the text.

Make sure your initial vectors match those on page 34.

Check that you get the same output. i.e. your relative normed errors match those listed on page 34.

Use the Power Method that we described at the end of class to check that the eigenvalues for (I-BA) match the eigenvalues outputted by the Mathematica function Eigenvalues.

Finally, use x = LinearSolve[A, b] to get the "actual" solution. And then compute relative normed error as discussed in class.

Page 34

Suppose A is a 50*50 matrix. This is so small that there is no difficult computing the actual solution via Gauss-Jordan elimination, and then the actual error for the Jacobi process.

Set A to be tridiagonal matrix with entries i,i = 0.5 on the diagonal i, i-1 = i+1 = 0.25 on the super diagonal and sub diagonal and zeros elsewhere. Next, take b to have ith entry equal to 1/i. The spectral radius if I-BA is approximately 0.998<1. We expect the Jacobi method to converge slowly. Indeed, this is the case. Starting with x0 = (1, 1, , 1) we have relative normed error of 1.101438 after 50 iterations, 0.41144 after 500 iterations and 8 x 10-5 at 5,000 iterations.

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_2

Step: 3

blur-text-image_3

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

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago