Modula-2 pp 72-85 | Cite as

Other Control Statements

  • Daniel Thalmann

Abstract

We now consider the scientific program of Fig. 8.1 which reads two experimental measures and performs certain computations on them. As it stands, this program could cause several problems for the user:
  1. 1)

    If there is an odd number of data points, an error will occur.

     
  2. 2)

    If m2 is less than mlim, the square root cannot be calculated.

     
  3. 3)

    If VSqrt is equal to vlim, division is impossible.

     

Keywords

Val2 Cardi 

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag Berlin Heidelberg 1985

Authors and Affiliations

  • Daniel Thalmann
    • 1
  1. 1.Département d’Informatique et Recherche OpérationnelleUniversité de MontréalMontréal (Quebec)Canada

Personalised recommendations