FORTRAN � FORmula TRANlastion by 3dMq16


									Lecture 1                                               1

                    AERO 320

Walter E. Haisler ‘67
Aerospace Engineering
719C H.R. Bright Bldg.

845-1640 (office), 845-7541 (receptionist)

Course web page:
Lecture 1                                                   2
Day 1

1. Distribute syllabus and discuss.

2. Complete form to obtain account for AERO computers.

3. Introduction to FORTRAN and Scientific Computing

4. Using Digital Visual Fortran 6 (handout)

5. Sample Fortran program – try your hand at using Visual
   Fortran 6

6. Reading Assignment: pp. 1-43, 270-278
Lecture 1                                                                            3
             Spring 2002 Class and Office Hours Schedule
                     Monday         Tuesday    Wednesday       Thursday    Friday
            9:00    AERO 405                   AERO 405                   AERO 405
            9:30    AERO 405                   AERO 405                   AERO 405
            11:00                  AERO 320                   AERO 320
            11:30                  AERO 320                   AERO 320
            12:00                  AERO 320                   AERO 320
            12:30   AERO 320                   AERO 320
            1:00    AERO 320                   AERO 320
            2:00    Sunil Office   WH OFFICE   Sunil Office   WH OFFICE
            2:30    Sunil Office   WH OFFICE   Sunil Office   WH OFFICE
            3:00    Sunil Office   WH OFFICE   Sunil Office   WH OFFICE
            3:30    Sunil Office   WH OFFICE   Sunil Office   WH OFFICE
Lecture 1                                                   4

               Introduction to FORTRAN
               and Scientific Computing

 FORTRAN – FORmula TRANslation

 Developed as a high level programming language by IBM
  in the mid 1950s.

 Used primarily by engineers and scientists for writing
  “scientific” programs (as opposed to COBOL that is used
  for business applications).

 Has seen many versions: FORTRAN, FORTRAN II,
  FORTRAN IV, FORTRAN 77, and Fortran 90.
Lecture 1                                                    5

 Other languages used by engineers include: Pascal, C,
  C+, C++ and others. They are very similar to Fortran but
  each has some unique capabilities that are needed in
  some applications. For example, C is useful in many
  laboratory applications requiring data gathering and
  interfacing with AD/DA boards.

 MatLab, Mathematica, MAPLE, etc., are not considered
  programming languages by most engineers. However,
  these languages have many of the same capabilities as

 Computer scientists often use low-level languages called
  machine language or assembly language to write fast,
  efficient code.
Lecture 1                                                    6

 Programs written in high level languages generally follow
  three steps:
   The program (and/or modules) is written in languages
    like FORTRAN, C, etc. This is called the source code.
   The source code must be converted to machine
    language using a compiler. The compiler produces files
    for each module (*.obj, *.dll, etc.).
   These machine language modules (like subroutines, *.dll
    files, etc.), plus other needed modules, are linked
    together with a link editor to produce one executable
    module (a .exe file).
   Once the program is debugged and verified as producing
    correct results, it does not have to be re-compiled, i.e.,
    you no longer need a compiler. Further, it (the .exe file)
    will run on any computer.
Lecture 1                                                   7

 Some simple programming languages (for example,
  BASIC, Maple, MATLAB, etc.) are interpretive and do not
  produce an executable module (*.exe file). They tend to be
  easy to use but are not very efficient for complex, lengthy
  computations. Every time you want to do computations,
  the source code must be re-interpreted (like compilation,
  but does not produce an executable file).

To top