roblem 1: Solve the linear system 3x +2y-z = 5 x+y+z=6 -x+2y + 2z = 6 by hand. Us a stopwatch to time your self and see how long it takes. Check your answer. If you got it right stop the timer. If not, try again. Once you are sure you have a correct answer, note the time. Now repeat using the Gaussian elimination algorithm we wrote in class, and the built in version in the numpy library. How much faster are they than working by hand?

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

Please use python and show the codes 

**Problem 1: Solve the Linear System**

\[
\begin{align*}
3x + 2y - z &= 5 \\
x + y + z &= 6 \\
-x + 2y + 2z &= 6 \\
\end{align*}
\]

**Instructions:**

1. Solve the system of equations by hand.
2. Use a stopwatch to time yourself and see how long it takes.
3. Check your answer. If correct, stop the timer. If not, try again.
4. Once you are sure you have a correct answer, note the time.

**Next Steps:**

- Repeat using the Gaussian elimination algorithm taught in class.
- Also, use the built-in version in the numpy library.
- Compare the time taken manually versus using the Gaussian elimination and numpy. How much faster are they than working by hand?
Transcribed Image Text:**Problem 1: Solve the Linear System** \[ \begin{align*} 3x + 2y - z &= 5 \\ x + y + z &= 6 \\ -x + 2y + 2z &= 6 \\ \end{align*} \] **Instructions:** 1. Solve the system of equations by hand. 2. Use a stopwatch to time yourself and see how long it takes. 3. Check your answer. If correct, stop the timer. If not, try again. 4. Once you are sure you have a correct answer, note the time. **Next Steps:** - Repeat using the Gaussian elimination algorithm taught in class. - Also, use the built-in version in the numpy library. - Compare the time taken manually versus using the Gaussian elimination and numpy. How much faster are they than working by hand?
Expert Solution
Step 1

In this question, it is asked to solve a set of equations using the gauss elimination method with python code.

The set of equations is already provided.

The python package used in this are numpy ,sys, and math.

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Time complexity
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education