Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago