Fortran_Language_Reference_Manual_Sep83.pdf

(6626 KB) Pobierz
FORTRAN
Language Manual for UniPlus+
_.--:...
-
------
_.
_.
. .
_
_
~
~----­
=Iiiiiil=~iiiili"
....
-
a
_
••
-
.
~
-- -
--....-.
_.
_.
-_..
---
-
.
---
_.
_......-
....-...
--
-
_.
-
------
-._
_......-----."'
-.--:
""T'
~
s
~
Y
S
T
EMS
739 Allston Way. Berkeley, CA 94710
(415) 644-1230 eTWX 11910 366-2145
UUCP ucbvaxlunisoftlunisoft
FORTRAN
Language Reference Manual
Version 2.0, 1st September 1983
PN: 1019-{)2
IIniSDl1
S
Y
S
T
EMS
This
FORTRAN
Reference Manual was produced by:
J. Barth, R.S. Glanville, H. McGilton and E. Boyle.
UniSoft Part Number: 1019-02
Copyright
~j
1983 by Silicon Valley Software, Inc.
All rights reserved. No part of this
FORTRAN
Reference Manual may be
reproduced, translated, transcribed or transmitted in any form or by any means
manual, electronic, electro-magnetic, chemical or optical without explicit
written permission from Silicon Valley Software, Inc. or U niSoft Systems.
CONTENTS
Chapter 1 - Introduction . • . . . . . • • .
1.1
Overview of the FORTRAN Language
1.2
Notation and Terminology Used in this Manual
1.3
Basic Elements of FORTRAN • . . • .
Chapter 2 - Lines, Statements and Control Flow •
2.1
Lines
••....•....••
2.2
Statements............
2.3
Execution Sequence and Control Transfer
.
1
1
4
5
8
8
10
13
15
15
15
16
Chapter 3 - Data Types and Constants
Data Type Rules .
..•.
3.1
3.2
Constants . • .
....••••
Integer Data Type
. . • •
3.3
Real Data Type • . . . • . .
3.4
3.5
Double Precision Data Type
Complex Data Type
3.6
3.7
Character Data Type
3.8
Logical Data Type . . . .
Chapter 4 - FORTRAN Names, Arrays and Substrings.
4.1
FORTRAN Names . .
4.2
Array Declarations . . . . • .
Character Substrings
4.3
Chapter 5 - Expressions . .
5.1
Arithmetic Expressions
5.2
Character Expressions
5.3
Relational Expressions .
5.4
Logical Expressions. . .
5.5
Precedence of Operators
5.6
Evaluation Rules and Restrictions for Expressions
Chapter 6 - Specification Statements . • • • • . . .
6.1
Type Statements - Declaring Data Types
DIMENSION - Declare Data Dimension
6.2
6.3
COMMON - Declare a COMMON Block .
PARAMETER - Make a Symbolic Association
6.4
IMPLICIT - Establish Default Data Type •
6.5
6.6
EXTERNAL - Declare External or Dummy
Procedure • . • • • • . . • • • .
INTRINSIC - Declare Intrinsic Function
6.7
6.8
SAVE - Retain Definition Status • • •
6.9
EQUIV ALENCE - Share Storage Between Elements
Chapter 7 - Data Initialization . • . • • •
7.1
Initializing Character Variables • •
• •
.
17
18
18
19
20
21
21
23
26
28
28
33
34
35
36
36
37
37
39
40
41
41
42
43
44
.
.
.
44
47
48
-i-
Zgłoś jeśli naruszono regulamin