Public Domain Aeronautical Software (PDAS)  

In order to check the operation of subroutine Atmosphere, a program called Tables in included that computes and prints a formatted page of data showing the atmospheric quantities at various altitudes. At each altitude, the program prints

In addition to the three fundamental non-dimensional numbers, this program also prints their dimensional values and, to fill out the page, supplies the speed of sound and the viscosity. Since there is still a little room on the page, kinematic viscosity and the ratio of the speed of sound to kinematic viscosity are also printed.

The program prints four distinct tables over different ranges.

The output tables look very neat provided you use a monospaced font, where every character occupies the same width. The same output looks dreadful with a proportional font. Neatly formatting such a table presents a few problems in style. The temperature in the atmosphere varies gradually and can easily be printed in a fixed format. However, the pressure at sea-level is a million times greater that the pressure at 86 km. Printing this quantity in fixed format would be wasteful, so it is printed in exponential format. It is interesting to see how this is done quite differently in different programming languages. The program Tables is supplied in separate versions for Fortran, Pascal(Delphi), C, C++, Fortran77, Java, Python (both 2 and 3), IDL, and Basic.

Public Domain Aeronautical Software (PDAS)