By Walter S. Brainerd

A primary functional advisor to Fortran ninety by way of contributors of the X3J3 Committee. it is a instructional on Fortran ninety for programmers and engineers and scientists who paintings with Fortran seventy seven and want to benefit the seriously revised criteria supplied for in Fortran ninety. lined during this advisor to programming languages are uncomplicated rules, basic programming workouts, quite a few examples and difficulties. Written through 4 senior participants of the ANSI Fortran criteria Committee X3J3, this publication serves as a brief resource of knowledge for training pros.

Show description

Read Online or Download A Programmer's Guide to Fortran 90 PDF

Similar compilers books

Fundamental Problems in Computing: Essays in Honor of Professor Daniel J. Rosenkrantz

Basic difficulties in Computing is in honor of Professor Daniel J. Rosenkrantz, a individual researcher in laptop technological know-how. Professor Rosenkrantz has made seminal contributions to many subareas of machine technology together with formal languages and compilers, automata idea, algorithms, database platforms, very huge scale built-in platforms, fault-tolerant computing and discrete dynamical platforms.

Handshake Circuits: An Asynchronous Architecture for VLSI Programming (Cambridge International Series on Parallel Computation)

'Design through programming' has proved very profitable within the improvement of advanced software program platforms. This booklet describes the development of courses for VLSI electronic circuit layout, utilizing the language Tangram, and exhibits how they are often compiled immediately in totally asynchronous circuits. Handshake circuits have been invented through the writer to split questions related to the effective implementation of the VLSI circuits from concerns bobbing up of their layout.

The Design and Construction of Compilers (Wiley Series in Computing)

A finished remedy of the implementation of high-level programming languages, fairly sleek languages comparable to ALGOL 60, ALGOL sixty eight, Pascal, and Ada. Emphasizes the layout of compilers in addition to the sensible features of compiler writing together with lexical research, syntax research, use of image tables, garage allocation, and code new release.

Die Macht der Abstraktion : Einführung in die Programmierung

"Die Macht der Abstraktion" ist eine Einführung in die Entwicklung von Programmen und die dazugehörigen formalen Grundlagen. Im Zentrum stehen Konstruktionsanleitungen, die die systematische Konstruktion von Programmen fördern, sowie Techniken zur Abstraktion, welche die Umsetzung der Konstruktionsanleitungen ermöglichen.

Additional info for A Programmer's Guide to Fortran 90

Example text

Section The interface block must be placed in the calling program unit. Note that an interface block can contain interfaces to more than one procedure. 3 INTENT It is possible to specify whether a procedure argument is intended to be used for input, output, or both, using the INTENT attribute. For example, INTEGER, INTENT(IN) :: x REAL,INTENT(OUT) :: y REAL, INTENT(INOUT) :: Z If the intent is IN, the argument value may not be changed within the subprogram. If the intent is OUT, the argument may only be used to return information from the procedure to the calling program.

Shape(/5,5/) and scalar ra = rb + rc*id ! Shape(/3,2/) ra(3:5,3:4) = rb(1::2,3:5:2) + rc(1:3,1:2) ! 7 Recursion It is important to be aware of how to achieve recursion in Fortran 90: For example, the code: DO i=2,n x(i) = x(i) + x(i-1) END DO is not the same as: x(2:n)= x(2:n) + x(1:n-1) In the first case, the assignment is: x(i) = x(i) + x(i-1) + x(i-2) + ... + x(1) whereas in the second case the assignment is: x(i) = x(i) + x(i-1) In order to achieve the recursive effect of the DO-loop, in Fortran 90 it would be appropriate to use the intrinsic function SUM.

Note that an interface block can contain interfaces to more than one procedure. 3 INTENT It is possible to specify whether a procedure argument is intended to be used for input, output, or both, using the INTENT attribute. For example, INTEGER, INTENT(IN) :: x REAL,INTENT(OUT) :: y REAL, INTENT(INOUT) :: Z If the intent is IN, the argument value may not be changed within the subprogram. If the intent is OUT, the argument may only be used to return information from the procedure to the calling program.

Download PDF sample

Rated 4.34 of 5 – based on 46 votes