typos fixed

svn: r10938
This commit is contained in:
Matthias Felleisen 2008-07-27 21:40:05 +00:00
parent d532716a51
commit a71b13eacd

View File

@ -12,14 +12,14 @@ matrix is just a rectangle of 'objects'. It is displayed as an image, just
like the images from @secref["image"]. Matrices are images and, indeed, like the images from @secref["image"]. Matrices are images and, indeed,
scenes in the sense of the @secref["world"]. scenes in the sense of the @secref["world"].
@emph{No educational materials involving matrices exist.}
The operations access a matrix in the usual (school-mathematics) manner: The operations access a matrix in the usual (school-mathematics) manner:
row first, column second. row first, column second.
The operations aren't tuned for efficiency so don't expect to build The operations aren't tuned for efficiency so don't expect to build
programs that process lots of data. programs that process lots of data.
@declare-exporting[teachpack/htdp/matrix] @declare-exporting[teachpack/htdp/matrix]
@deftech{Rectangle} @deftech{Rectangle}
@ -49,7 +49,9 @@ it were like @scheme[make-vector]}
@defproc[(build-matrix @defproc[(build-matrix
[n natural-number/c][m natural-number/c] [n natural-number/c][m natural-number/c]
[f (-> (and/c natural-number/c (</c m)) (and/c natural-number/c (</c n)) any/c)]) [f (-> (and/c natural-number/c (</c m))
(and/c natural-number/c (</c n))
any/c)])
matrix?]{ matrix?]{
creates an @scheme[n] by @scheme[m] matrix by applying @scheme[f] to @scheme[(0,0)], creates an @scheme[n] by @scheme[m] matrix by applying @scheme[f] to @scheme[(0,0)],
@scheme[(0,1)], ..., (@scheme[(sub1 m),(sub1 n)])} @scheme[(0,1)], ..., (@scheme[(sub1 m),(sub1 n)])}