24 lines
716 B
Racket
24 lines
716 B
Racket
#lang scribble/doc
|
|
|
|
@(require scribble/manual "shared.ss"
|
|
(for-label scheme
|
|
teachpack/htdp/graphing))
|
|
|
|
@teachpack["graphing"]{Graphing Functions}
|
|
|
|
@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}.
|
|
|