On this page:
graph-fun
graph-line
Version: 4.1

1.11 Graphing Functions: "graphing.ss"

The teachpack provides two operations for graphing functions in the regular (upper right) quadrant of the Cartesian plane (between 0 and 10 in both directions):

(graph-fun f color)  true

  f : (-> number?  number?)

  color : symbol?

Draws the graph of f with the given color.

(graph-line line color)  true

  line : (-> number? number?)

  color : symbol?

Draws line, a function representing a straight line, with a given color.

For color symbols, see Simple Drawing: "draw.ss".