Question: Task 1: Write your own function that implements the Dolittle solver to solve Ax - b. Write a script file that calls your Dolittle function

 Task 1: Write your own function that implements the Dolittle solver

Task 1: Write your own function that implements the Dolittle solver to solve Ax - b. Write a script file that calls your Dolittle function for solving Ax -b. The script file that you write is to export a function with an interface of: def run(A, b): This function will call your Dolittle solver and then print out the following arrays for an arbitrary user (grader) supplied matrix A and right hand side vector b: 1) L the lower-triangular matrix in Dolittle's decomposition of A 2) the upper-triangular matrix in Dolittle's decomposition of A 3) xthe solution vector to Ar-b The output to the command terminal prompt within Spyder should read L is U is x is The elements of these matrices and vector should be printed out to 4 significant digits of accuracy and displayed in scientific notation Call this script file a4task1.py Task 1: Write your own function that implements the Dolittle solver to solve Ax - b. Write a script file that calls your Dolittle function for solving Ax -b. The script file that you write is to export a function with an interface of: def run(A, b): This function will call your Dolittle solver and then print out the following arrays for an arbitrary user (grader) supplied matrix A and right hand side vector b: 1) L the lower-triangular matrix in Dolittle's decomposition of A 2) the upper-triangular matrix in Dolittle's decomposition of A 3) xthe solution vector to Ar-b The output to the command terminal prompt within Spyder should read L is U is x is The elements of these matrices and vector should be printed out to 4 significant digits of accuracy and displayed in scientific notation Call this script file a4task1.py

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!