Advertisement

Basic — Subroutines

  • P. J. Hartley
Chapter
  • 11 Downloads

Abstract

In the previous chapter we constructed a program for the trapezium rule in which the function to be integrated appeared three times. To avoid writing out the function those three times we used the DEF FN statement to define the function, and referred to that definition at the three places in the program where it was needed.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© P. J. Hartley 1976

Authors and Affiliations

  • P. J. Hartley
    • 1
  1. 1.Lanchester PolytechnicCoventryUK

Personalised recommendations