Collaborative Problem: Write a computer program that does the forward phase of Gauss-Jordan elimination for a system of 4 equations and 4 unknowns. Test it on the example problem from class. It may be useful to print the matrix at each step for debugging purposes. It is allowable to use the fact that the system has 4 equations; however, next week's program will be for a system of n equations and n unknowns, so the more general you can formulate it, the easier next week's homework will be.
Individual Problem: Extend the program to do the backward phase and find the answer.
Homework 7, due November 6, 2008.
-
- Site Admin
- Posts: 1596
- Joined: Tue Aug 24, 2004 4:54 pm
- Location: 376 Fitzpatrick
- Contact:
Homework 7, due November 6, 2008.
Bill Goodwine, 376 Fitzpatrick
Re: Homework 7, due November 6, 2008.
Michael McDonnell
Fortran Homework 7
Fortran Homework 7
You do not have the required permissions to view the files attached to this post.
Re: Homework 7, due November 6, 2008.
Do you want the output as an x vector,an augmented matrix, or as x1 = b1 etc?
-
- Site Admin
- Posts: 1596
- Joined: Tue Aug 24, 2004 4:54 pm
- Location: 376 Fitzpatrick
- Contact:
Re: Homework 7, due November 6, 2008.
Any form is o.k. Since you asked, a vector would be best since that is what the answer actually is.mbohnert wrote:Do you want the output as an x vector,an augmented matrix, or as x1 = b1 etc?
Bill Goodwine, 376 Fitzpatrick
Re: Homework 7, due November 6, 2008.
I have a lot of the numerical locations of array elements hard-coded into my program (for example: A(2,J), rather than A(N,J)). I also have a separate do loop to find each 1 or 0 element in the reduction. I remember you told me that next week, we'd have to apply the problem to more general situations, but is what I did acceptable for this week's assignment?
Thanks!
Eddie
Thanks!
Eddie
-
- Site Admin
- Posts: 1596
- Joined: Tue Aug 24, 2004 4:54 pm
- Location: 376 Fitzpatrick
- Contact:
Re: Homework 7, due November 6, 2008.
What you did is perfectly acceptable for this week.eguilbea wrote:I have a lot of the numerical locations of array elements hard-coded into my program (for example: A(2,J), rather than A(N,J)). I also have a separate do loop to find each 1 or 0 element in the reduction. I remember you told me that next week, we'd have to apply the problem to more general situations, but is what I did acceptable for this week's assignment?
Thanks!
Eddie
Bill Goodwine, 376 Fitzpatrick
Re: Homework 7, due November 6, 2008.
HW7
You do not have the required permissions to view the files attached to this post.