Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use Wolfram Mathematica coding to solve question below: = - P4) (L 2.2.6) Build a 500 x 500 matrix A [aij] with diagonal entries

Please use Wolfram Mathematica coding to solve question below:

image text in transcribed

= - P4) (L 2.2.6) Build a 500 x 500 matrix A [aij] with diagonal entries Qji = 1, superdiagonal entries Ai,i-1 -0.5, and subdiagonal entries Qi+1, -0.5. (Hint: Construct these matrices using the Mathematica built-in Sparse Array.) a) Execute Linear Solve for the linear system Ax - b where bi = 1 for every i. Use the command LU Decomposition to determine the condition number of A. b) Repeat exercise a) for a 100 x 100, 200 x 200, 300 x 300, 400 x 400 matrix having the same diagonal, subdiagonal, superdiagonal. Plot the condition number as a function of the matrix size. The command List Plot will help here. = - P4) (L 2.2.6) Build a 500 x 500 matrix A [aij] with diagonal entries Qji = 1, superdiagonal entries Ai,i-1 -0.5, and subdiagonal entries Qi+1, -0.5. (Hint: Construct these matrices using the Mathematica built-in Sparse Array.) a) Execute Linear Solve for the linear system Ax - b where bi = 1 for every i. Use the command LU Decomposition to determine the condition number of A. b) Repeat exercise a) for a 100 x 100, 200 x 200, 300 x 300, 400 x 400 matrix having the same diagonal, subdiagonal, superdiagonal. Plot the condition number as a function of the matrix size. The command List Plot will help here

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

Principles of Accounting

Authors: Belverd E. Needles, Marian Powers and Susan V. Crosson

12th edition

978-1133603054, 113362698X, 9781285607047, 113360305X, 978-1133626985

More Books

Students also viewed these Accounting questions

Question

Develop a program for effectively managing diversity. page 303

Answered: 1 week ago

Question

List the common methods used in selecting human resources. page 239

Answered: 1 week ago