By Walter S. Brainerd

ISBN-10: 0070002487

ISBN-13: 9780070002487

A primary functional consultant to Fortran ninety by way of contributors of the X3J3 Committee. this can be a educational on Fortran ninety for programmers and engineers and scientists who paintings with Fortran seventy seven and want to profit the seriously revised criteria supplied for in Fortran ninety. lined during this consultant to programming languages are simple ideas, basic programming workouts, a variety of examples and difficulties. Written by means of 4 senior individuals of the ANSI Fortran criteria Committee X3J3, this ebook serves as a short resource of data for practicing execs.

Show description

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

Similar compilers books

Operational Semantics for Timed Systems: A Non-standard by Heinrich Rust PDF

This monograph is devoted to a singular strategy for uniform modelling of timed and hybrid structures. Heinrich Rust offers a time version which permits for either the outline of discrete time steps and non-stop methods with a dense real-number time version. The proposed time version is definitely fitted to convey synchronicity of occasions in a real-number time version in addition to strict causality by utilizing uniform discrete time steps.

Maurice J. Bach's The Design of the UNIX Operating System (Prentice-Hall PDF

Vintage description of the interior algorithms and the constructions that shape the foundation of the UNIX working process and their courting to programmer interface. The prime promoting UNIX internals booklet out there.

New PDF release: Building Arduino Projects for the Internet of Things:

This can be a ebook approximately development Arduino-powered units for daily use, after which connecting these units to the web. if you are one of many many that have made up our minds to construct your personal Arduino-powered units for IoT functions, you may have most likely wanted you will discover a unmarried source - a guidebook for the eager-to-learn Arduino fanatic - that teaches logically, methodically, and virtually how the Arduino works and what you could construct with it.

New PDF release: Integrated Formal Methods: 12th International Conference,

This ebook constitutes the refereed lawsuits of the twelfth overseas convention on built-in Formal equipment, IFM 2016, held in Reykjavik, Iceland, in June 2016. The 33 papers provided during this quantity have been conscientiously reviewed and chosen from ninety nine submissions. They have been equipped in topical sections named: invited contributions; application verification; probabilistic platforms; concurrency; safeguard and liveness; version studying; SAT and SMT fixing; trying out; theorem proving and constraint pride; case reviews.

Extra resources for A Programmer's Guide to Fortran 90

Sample text

The intrinsic procedure will be applied to each element in the array separately, but again arrays must be conformable. The following are examples of elemental intrinsic procedures: 1. Find the square roots of all elements of an array, a. ) b=SQRT(a) 2. Find the string length excluding trailing blanks for all elements of a character array ch. 4 WHERE Statement The WHERE statement can be used to perform assignment only if a logical condition is true and this is useful to perform an array operation on only certain elements of an array.

If there is not, the program execution aborts. The intrinsic function SIZE is often used when declaring automatic arrays. SIZE has the form: SIZE(ARRAY [,DIM]) This returns the extent of ARRAY along dimension DIM, or returns the size of ARRAY if DIM is absent. 52 Fortran 90 Student Notes Array Processing Note that an automatic array must not appear in a SAVE or NAMELIST statement, nor be initialised in a type declaration. The following example shows the automatic arrays, work1 and work2 which take their size from the dummy arguments n and a: SUBROUTINE sub(n,a) IMPLICIT NONE INTEGER :: n REAL, DIMENSION(n,n), INTENT(INOUT) :: a REAL, DIMENSION(n,n) :: work1 REAL, DIMENSION(SIZE(a,1)) :: work2 ...

4. Find the average value greater than 3000 in an array. In Fortran 77 this requires DO loops and IF statements, whereas Fortran 90 code is: av=SUM(a,MASK=(a>3000))/COUNT(MASK=(a>3000)) 44 Fortran 90 Student Notes Array Processing Note in the last two examples the use of the following array intrinsic functions: MAXVAL - returns the maximum array element value. SUM - returns the sum of the array elements. COUNT - returns the number of true array elements. 3 Elemental Intrinsic Procedures Fortran 90 also allows whole array elemental intrinsic procedures.

Download PDF sample

A Programmer's Guide to Fortran 90 by Walter S. Brainerd

by Anthony

Rated 4.31 of 5 – based on 12 votes