F90 - Simple Fortran 90 Examples
F90 or "Fortran 90", is the successor to the Fortran 77 language.
While I find this language dauntingly baroque, it's here to stay, and
gradually replacing the older language. Some features of Fortran 90
are necessary or useful or even really really nice. Some are useful for
trying to use new computers or parallel languages properly. Others make
it easy to work with vectors and matrices.
Files you may copy include:
-
big_ints.f90, compares regular
and "big" integers specified with the KIND qualifier;
-
big_ints.out, output;
-
matrix_function_test.f90,
uses a function that returns a matrix;
-
matrix_function_test.out,
output;
-
mxm.f90, multiplies two matrices using
the MATMUL intrinsic;
-
mxm.out, output;
-
random_prb.f90, demonstrates the
random number routines;
-
random_prb.out, output;
-
random_test.f90, demonstrates the
random number routines;
-
random_test.out, output;
-
recursive_test.f90, demonstrates
the use of recursive function definitions;
-
recursive_test.out, output;
-
sort_test.f90, bubble-sorts a real
vector;
-
sort_test.out, output;
-
where_test.f90, demonstrates the
WHERE statement;
-
where_test.out, the output;
Return to the FORTRAN software page.
Last revised on 20 May 2001.