racket/collects/teachpack/htdp/Docs/graphing.scrbl
Matthias Felleisen b2e6252d5c svn: r9439
2008-04-23 23:04:59 +00:00

24 lines
707 B
Racket

#lang scribble/doc
@(require scribble/manual
(for-label scheme
teachpack/htdp/graphing))
@title[#:tag "graphing"]{Graphing Functions: graphing.ss}
@declare-exporting[teachpack/htdp/graphing]
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):
@defproc[(graph-fun [f (-> number? number?)][color symbol?]) true]{
Draws the graph of @scheme[f] with the given @scheme[color].}
@defproc[(graph-line [line (-> number? number?)][color symbol?]) true]{
Draws @scheme[line], a function representing a straight line, with a given
color.}
For color symbols, see @secref{draw}.