ArticleslgStudy

computer science

Fortran

Fortran is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Fortran rather than just read about it. In short: Fortran (; formerly FORTRAN) is a third-generation, compiled, imperative programming language designed for numeric computation and scientific computing. Fortran was originally developed by IBM with a reference manual being released in 1956; however, the first compilers only began to produce accurate code two years later.

Fortran — main illustration
Fortran — illustration

Key takeaways

  • Fortran belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Fortran to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Fortran from memory before moving on to harder problems.

Reference excerpt

Fortran (; formerly FORTRAN) is a third-generation, compiled, imperative programming language designed for numeric computation and scientific computing. Fortran was originally developed by IBM with a reference manual being released in 1956; however, the first compilers only began to produce accurate code two years later. Fortran computer programs have been written to support scientific and engineering applications, such as numerical weather prediction, finite element analysis, computational fluid dynamics, plasma physics, geophysics, computational physics, crystallography and computational chemistry. It is a popular language for high-performance computing and is used for programs that benchmark and rank the world's fastest supercomputers. Fortran has evolved through numerous versions and dialects. The two most important early versions were FORTRAN II and FORTRAN IV. In 1966, the American National Standards Institute (ANSI) developed a standard for Fortran to limit proliferation of compilers using slightly different syntax. Successive versions have added support for a character data type, structured programming (Fortran 77), array programming, modular programming, generic programming (Fortran 90), parallel computing (Fortran 95), object-oriented programming (Fortran 2003), and concurrent programming (Fortran 2008).

Naming The first manual for FORTRAN describes it as a Formula Translating System, and printed the name with small caps, Fortran. Other sources suggest the name stands for Formula Translator, or, most commonly, Formula Translation. Early IBM computers did not support lowercase letters, and the names of versions of the language through FORTRAN 77 were usually spelled in all-uppercase. FORTRAN 77 was the last version in which the Fortran character set included only uppercase letters. The Fortran 90 standard changed the language name from "FORTRAN" with all-caps to "Fortran" with initial caps.

Origins

In late 1953, John W. Backus submitted a proposal to his superiors at IBM to develop a more practical alternative to assembly language for programming their IBM 704 mainframe computer. Backus' historic FORTRAN team consisted of programmers Richard Goldberg, Sheldon F. Best, Harlan Herrick, Peter Sheridan, Roy Nutt, Robert Nelson, Irving Ziller, Harold Stern, Lois Haibt, and David Sayre. Its concepts included easier entry of equations into a computer, an idea developed by J. Halcombe Laning and demonstrated in the Laning and Zierler system of 1952. As with other developments in the early days of computing, there were several parallel, independent efforts along these lines, with other instances of proto-Fortran languages including the A-0 System for the UNIVAC I and its follow-on MATH-MATIC, under the direction of Grace Murray Hopper; the high-level language work developed by Heinz Rutishauser for the Zuse 4 computer; and the Mark 1 Autocode work done by R. A. Brooker for the Ferranti Mercury.

A draft specification for The IBM Mathematical Formula Translating System was completed by November 1954. The first manual for FORTRAN appeared in October 1956, with the first FORTRAN compiler delivered in April 1957. Fortran produced efficient enough code for assembly language programmers to accept a high-level programming language replacement. John Backus said during a 1979 interview with Think, the IBM employee magazine, "Much of my work has come from being lazy. I didn't like writing programs, and so, when I was working on the IBM 701, writing programs for computing missile trajectories, I started work on a programming system to make it easier to write programs." The language was widely adopted by scientists for writing numerically intensive programs, which encouraged compiler writers to produce compilers that could generate faster and more efficient code. The inclusion of a complex number data type in the language made Fortran especially suited to technical applications such as electrical engineering. By 1960, versions of FORTRAN were available for IBM's 709, 650, 1620 and 7090 computers. Significantly, the increasing popularity of FORTRAN spurred competing computer manufacturers to provide FORTRAN compilers for their machines, so that by 1963 over 40 FORTRAN compilers existed. So pervasive was the language within the computing industry that by that time, over 220,000 Fortran manuals of all kinds had been distributed. FORTRAN was provided for the IBM 1401 computer by an innovative 63-phase compiler that ran entirely in its core memory of only 8000 (six-bit) characters. The compiler could be run from tape, or from a 2200-card deck; it used no further tape or disk storage. It kept the program in memory and loaded overlays that gradually transformed it, in place, into executable form, as described by Haines. This article was reprinted, edited, in both editions of Anatomy of a Compiler and in the IBM manual "Fortran Specifications and Operating Procedures, IBM 1401". The executable form was not entirely machine language; rather, floating-point arithmetic, sub-scripting, input/output, and function references were interpreted, preceding UCSD Pascal P-code by two decades. GOTRAN, a simplified, interpreted version of FORTRAN I (with only 12 types of statements not 32) for "load and go" operation was available (at least for the early IBM 1620 computer). Modern Fortran, and almost all later versions, are fully compiled, as done for other high-performance languages. The development of Fortran paralleled the early evolution of compiler technology, and many advances in the theory and design of compilers were specifically motivated by the need to generate efficient code for Fortran programs. Indeed, the Fortran compiler was one of the most complicated programs of any kind in existence at the time, and it was used by IBM's Product Test group in Poughkeepsie, New York, as part of acceptance testing for newly built computers.

FORTRAN The initial release of FORTRAN for the IBM 704 contained 32 types of statements, including:

… excerpt ends here. Continue reading the full article.

Illustrations

Fortran illustration
Fortran: FORTRAN and COBOL genealogy tree
FORTRAN and COBOL genealogy tree
Fortran: John Backus proposed the FORTRAN project in December 1953 and received the A.M. Turing Award in 1977.
John Backus proposed the FORTRAN project in December 1953 and received the A.M. Turing Award in 1977.
Fortran: The Fortran Automatic Coding System for the IBM 704 (October 15, 1956), the first programmer's reference manual for Fortran[10]
The Fortran Automatic Coding System for the IBM 704 (October 15, 1956), the first programmer's reference manual for Fortran[10]
Fortran: FORTRAN code on a punched card, showing the specialized uses of columns 1–5, 6 and 73–80
FORTRAN code on a punched card, showing the specialized uses of columns 1–5, 6 and 73–80

Worked examples

Example 1 — a first encounter with Fortran

Start with the simplest possible case. Write down what Fortran claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Fortran before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Fortran ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Fortran

In research
Fortran appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Fortran in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Fortran is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1957 software, American inventions, Array programming languages, so understanding it makes those chapters shorter.
In everyday life
Look for Fortran outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Fortran” →

How to study Fortran in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Fortran means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Fortran out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Fortran in simple terms?

Fortran (; formerly FORTRAN) is a third-generation, compiled, imperative programming language designed for numeric computation and scientific computing. Fortran was originally developed by IBM with a reference manual being released in 1956; however, the first compilers only began to produce accurat…

Why does Fortran matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Fortran?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Fortran.

Tags

  • 1957 software
  • American inventions
  • Array programming languages
  • Compiled programming languages
  • Computer standards
  • Fortran
  • Fortran programming language family
  • High-level programming languages
  • IBM software
  • Numerical programming languages
  • Object-oriented programming languages
  • Procedural programming languages

Keep exploring