Teachpacks for How to Design Programs

Graphing Functions 2


graphing2.ss

The teachpack graphing2.ss provides two operations for graphing functions on the Cartesian plane (between -5 and 5 in both directions): graphics functions:
  • graph-fun : (number -> number) symbol -> Plot;
    draws a function in bulletized form with a given color
  • graph-line : (number -> number) symbol -> Plot (no arguments);
    draws a function in small line increments with a given color
  • The legal color symbols are: 'white 'black 'yellow 'green 'aqua 'pink 'wheat 'grey 'brown 'blue 'violet 'cyan 'turquoise 'magenta 'salmon 'red.