Use blackboard for your completed solutions. You are to only use the solvers developed during this semester to generate your solutions.

computer science

Description

CS 417

You have 1 week to complete this . Use blackboard for your completed solutions. You are to only use the solvers developed during this semester to generate your solutions.

 You may use the library or any computer lab as well.

 

 

There are 5 data files in the final exam directory. The format for each is as follows:

            N = length of the solution vector

            N*N values for the matrix A

            N values for the right side b

             

            Solve q1data.txt using your Gaussian Elimination Solver

            Solve q2data.txt using your LU solver

            Solve q3data.txt using Jacobi iterator (give me your iteration count as well as the solution please)

            Solve q4data.txt using Gauss-Seidel

            Solve q5data.txt using SOR with the over relaxation constant set to 1.15

 

            For each of these take the N values of the solution and load them into a text file, use root N rows and root N columns.   Graph a surface plot of the solution. Each should reveal an easy recognizable image.

----------------------------------------------------------------------------------------------------------

Example a file has the following values:

9

10 11 12 13 14 15 16 17 18 19

20 21 22 23 24 25 26……

30 31 32 33 ……

….

.... 91

100 200 300 400 500 600 700 800 900

 

The problem will have 9 solutions.

The matrix A is 9x9 has 81 entries 10 through 91

The right hand side b has nine values 100 through 900

 

Let’s pretend the answer is x = 1 2 3 4 5 6 7 8 9

The physical domain is 3x3, e.g. the square root of 9

You would load those values into excel as

1 2 3

4 5 6

7 8 9 and graph them as a surface plot.

 


Related Questions in computer science category