Академический Документы
Профессиональный Документы
Культура Документы
x
j
|
\
|
.
|
, i = n 1,...,1
FAQ References Summary Info
Resources
Learning Objectives
Introduction
Gaussian elimination
method
Gaussian elimination
procedure
Programming
exercise
Programming Exercise
Make a FORTRAN program consisting of a main program, that
reads the coefficients of the system of equations (n, a
1,1
a
n,n
,
d
1
d
n
) from an input file (IN.DAT) and writes the results (x
1
x
n
)
to an out-file (OUT.DAT), and a subroutine, SUBROUTINE
GAUSS(X,A,D,N), that uses the Gaussian elimination method in
order to solve the set of equations and returns n values of x to
the main program
Test the program on the following set of equations:
+27 = +6t +4s -2z +5y 3x
-19 = -9t +3s +8z -7y 5x
-33 = -2t -3s +6z 4y
+53 = +3t +9s -3z -2y 8x
-35 = +7t -5s +4z +3y 2x
Continue
Push
FAQ References Summary Info
Resources
Learning Objectives
Introduction
Gaussian elimination
method
Gaussian elimination
procedure
Programming
exercise
Programming Exercise
The Petra-server includes a NAG-library of scientific subroutines.
Find a subroutine in this library (use naghelp) that may be used
for solution of simultaneous equations (Gaussian elimination
method or some other method). Modify the program above so
that is asks you on the screen if you want to use the
programmed Gaussian-routine or the NAG-routine for the
solution. Check that the solutions from the two methods are
identical. (Note that all real variables should be declared as
REAL*8 (double precision) since the NAG-routines require this)
The NAG-routine may be linked in by the command
xlf o prog fil.f L/localiptibm3/lib l nag
Resources
FAQ References Summary Info
Resources
Learning Objectives
Introduction
Gaussian elimination
method
Gaussian elimination
procedure
Programming
exercise
Resources
Introduction to Fortran
Fortran Template here
The whole exercise in a printable format here
Web sites
Numerical Recipes In Fortran
Fortran Tutorial
Professional Programmer's Guide to Fortran77
Programming in Fortran77
FAQ References Summary Info
Resources
Learning Objectives
Introduction
Gaussian elimination
method
Gaussian elimination
procedure
Programming
exercise
General information
Title: Solution of linear equations using Gaussian elimination
Teacher(s): Professor Jon Kleppe
Assistant(s): Per Jrgen Dahl Svendsen
Abstract: Provide a good background for solving problems within
petroleum related topics using numerical methods
4 keywords: Linear equations, Gaussian elimination, matrices,
subroutines
Topic discipline:
Level: 2
Prerequisites: None
Learning goals: Develop problem solution skills using computers and
numerical methods
Size in megabytes: 0.6 MB
Software requirements: MS Power Point 2002 or later, Flash Player 6.0
Estimated time to complete:
Copyright information: The author has copyright to the module and use of the
content must be in agreement with the responsible author
or in agreement with http://www.learningjournals.net.
About the author
FAQ References Summary Info
Resources
Learning Objectives
Introduction
Gaussian elimination
method
Gaussian elimination
procedure
Programming
exercise
FAQ
No questions have been posted yet. However, when questions are
asked they will be posted here.
Remember, if something is unclear to you, it is a good chance that
there are more people that have the same question
For more general questions and definitions try these
Dataleksikon
Webopedia
Schlumberger Oilfield Glossary
FAQ References Summary Info
Resources
Learning Objectives
Introduction
Gaussian elimination
method
Gaussian elimination
procedure
Programming
exercise
References
W. H. Preuss, et al., Numerical Recipes in Fortran,
2nd edition
Cambridge University Press, 1992
References to the textbook :
Gauss Jordan elimination: page 27
Gaussian Elimination with backsubstitution: page 33
FAQ References Summary Info
Resources
Learning Objectives
Introduction
Gaussian elimination
method
Gaussian elimination
procedure
Programming
exercise
Summary
Subsequent to this module you should...
be familiar with the Gaussian Elimination Method
have a good feel for how Nag routines are used
know how to efficiently use subroutines
have obtained a better understanding on solving problems
in Fortran