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

By Walter S. Brainerd

ISBN-10: 0070002487

ISBN-13: 9780070002487

A primary functional consultant to Fortran ninety by means of individuals 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 wish to benefit the seriously revised criteria supplied for in Fortran ninety. lined during this advisor to programming languages are easy ideas, uncomplicated programming workouts, various 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 working towards pros.

Show description

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

Similar compilers books

Get The Structure of the Relational Database Model PDF

This ebook offers an outline of the main primary elements of the idea that underlies the Relational Database version. As such it truly is self-contained even though adventure with formal versions and summary information manipulating at the one hand and with the sensible use of a relational method nonetheless might help the reader.

Get Fortran 95 Language Guide PDF

Fortran is among the most generally used programming languages in technological know-how and engineering. Fortran ninety changed the outdated FORTRAN seventy seven in 1991 and this contemporary model of the overseas common complements this model. it's also numerous new good points to make sure that Fortran is still aligned with excessive functionality Fortran (HPF) for parallel desktop architectures.

Tim Ambler, Nicholas Cloud's JavaScript Frameworks for Modern Web Dev PDF

JavaScript Frameworks for contemporary net Dev is your consultant to the wild, monstrous, and untamed frontier that's JavaScript improvement. The JavaScript tooling panorama has grown and matured greatly some time past a number of years. This ebook will function an creation to either new and good proven libraries, frameworks, and utilities that experience received renowned traction and aid from pro builders.

Extra resources for A Programmer's Guide to Fortran 90

Sample text

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.

Find the maximum value less than 1000 in this array. In Fortran 77 this requires triple DO loop and IF statements, whereas the Fortran 90 code is: REAL, DIMENSION(10,10,10) :: a amax=MAXVAL(a,MASK=(a<1000)) Note the use of the optional MASK argument. MASK is a logical array expression. Only those elements of a that correspond to elements of MASK that have the value true take part in the function call. So in this example amax is the value of the maximum element in a which is less than 1000. 4. Find the average value greater than 3000 in an array.

Shape (5, 5) ! = REAL, DIMENSION (0:4,2:6) :: rc . . END SUBROUTINE sub The calling program might include: REAL, DIMENSION (0:9,10) :: ra ! Shape (10, 10) INTERFACE SUBROUTINE sub(ra,rb,rc) REAL, DIMENSION(:,:), INTENT(IN) :: ra,rb REAL, DIMENSION(0:,2:), INTENT(OUT) :: rc END SUBROUTINE sub END INTERFACE . . : PROGRAM array IMPLICIT NONE REAL, ALLOCATABLE, DIMENSION(:,:) :: a REAL :: res INTEGER :: n1 INTERFACE SUBROUTINE sub(a,res) REAL, DIMENSION(:, :), INTENT(IN) :: a REAL, DIMENSION(SIZE(a, 1),SIZE(a, 2)) :: work END SUBROUTINE sub END INTERFACE ...

Download PDF sample

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

by Donald

Rated 4.03 of 5 – based on 9 votes