Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am having problem with this assignment in my Python class. I don't know where to start with my code. Any help? This has to

I am having problem with this assignment in my Python class. I don't know where to start with my code. Any help?

This has to be done with all Python code.

image text in transcribed

Write a function named gauss Seidel where you will implement this solution method. The gaussSeidel function should do the following: Input a LIST of equations to be solved, Input a LIST of the initial guess for all variables being solved for Input a maxError, with a default value of le-6, that will be used to evaluate when the solution has converged The method should iterate on the list of equations until a converged solution is obtained for each equation The function should then return a list of the final solution values. You will test your method on the following two system of equations: System 1: Initial guess: C-3, y=26 == y = -1 System 2: Initial guess: 21-22-13= 501 - 202 + 30= -1 -341 +9.12 + 3 = 2 201 - 22 - 7x3 = 3 Your full program should do the following: Send the functions to the G-S method with an initial guess for the functions Plot each of the functions Show on the plot that you have found the point in space where all functions are satisfied (Note: For the 3D functions, you are welcome to use a 3D plot, but they are kind of a pain in Python. I recommend that you just plot the solution in 2D. Hold one dimension constant at the root, and plot the three function curves on that plane) Write a function named gauss Seidel where you will implement this solution method. The gaussSeidel function should do the following: Input a LIST of equations to be solved, Input a LIST of the initial guess for all variables being solved for Input a maxError, with a default value of le-6, that will be used to evaluate when the solution has converged The method should iterate on the list of equations until a converged solution is obtained for each equation The function should then return a list of the final solution values. You will test your method on the following two system of equations: System 1: Initial guess: C-3, y=26 == y = -1 System 2: Initial guess: 21-22-13= 501 - 202 + 30= -1 -341 +9.12 + 3 = 2 201 - 22 - 7x3 = 3 Your full program should do the following: Send the functions to the G-S method with an initial guess for the functions Plot each of the functions Show on the plot that you have found the point in space where all functions are satisfied (Note: For the 3D functions, you are welcome to use a 3D plot, but they are kind of a pain in Python. I recommend that you just plot the solution in 2D. Hold one dimension constant at the root, and plot the three function curves on that plane)

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_2

Step: 3

blur-text-image_3

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

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions

Question

Find dy/dx if x = te, y = 2t2 +1

Answered: 1 week ago