Materials Algorithms Project
Program Library
- Provenance of code.
- Purpose of code.
- Specification.
- Description of subroutine's operation.
- References.
- Parameter descriptions.
- Error indicators.
- Accuracy estimate.
- Any additional information.
- Example of code
- Auxiliary subroutines required.
- Keywords.
- Download source code.
- Links.
H.K.D.H. Bhadeshia,
Phase Transformations Group,
Department of Materials Science and Metallurgy,
University of Cambridge,
Cambridge, U.K.
Top |
Next
To calculate the determinant of a 3x3 matrix.
Top |
Next |
Prev
Language: | FORTRAN
|
Product form: | Source code |
SUBROUTINE MAP_UTIL_DET(G, DEL)
REAL G(9), DEL
Top |
Next |
Prev
MAP_UTIL_DET calculates the determinant of a 3x3 matrix held in vector form.
Top |
Next |
Prev
- H.K.D.H. Bhadeshia, Worked Examples in the Geometry of Crystals,
Institute of Materials, London, 1987.
Top |
Next |
Prev
Input parameters
- G - real array of dimension 9
- G is a 3x3 matrix in vector form.
Output parameters
- DEL - real
- DEL is the determinant of G.
Top |
Next |
Prev
None.
Top |
Next |
Prev
No information supplied.
Top |
Next |
Prev
None.
Top |
Next |
Prev
1. Program text
REAL G(9), DEL
INTEGER I
READ (5,*) (G(I), I=1,9)
CALL MAP_UTIL_DET(G, DEL)
WRITE (6,*) DEL
STOP
END
2. Program data
1.0 -1.0 2.5 -2.0 3.3 1.2 -1.0 4.0 0.5
3. Program results
-14.7
Top |
Next |
Prev
None.
Top |
Next |
Prev
determinant
Top |
Next |
Prev
Download source code
Top |
Prev