Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started