This outline is also available in PDF.
Held: Monday, 7 September 2009
Summary: We explore a bit more about data in Scheme, particularly the ways in which our version of Scheme supports numbers.
http://www.grinnell.edu/academic/psychology/faculty/dl/risc/. It should take about fifteen minutes.
nameis a variable and undefined, the interpreter will respond with an error when it is used.
changing the size of the image. We want you to reflect what happens if we do the same drawing commands in a window of a different size.
+) on numbers and we can use the
string-appendoperation on strings.
numberstype, Scheme provides a variety of kinds of numbers.
mod(modulo, modulus) operation is one of the trickier operations we use in this class (and we use it a lot).
modis used to break up the number line into even chunks.
Number line: -9 -8|-7 -6 -5 -4 -3 -2 -1| 0 1 2 3 4 5 6| 7 8 9 10 11 Modulo 7: 5 6| 0 1 2 3 4 5 6| 0 1 2 3 4 5 6| 0 1 2 3 4
(modulo i n)operation allows us to cycle through the numbers between 0 and
I usually create these pages
on the fly, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Fri Dec 11 09:38:40 2009.
The source to the document was last modified on Fri Aug 21 17:03:06 2009.
This document may be found at
You may wish to validate this document's HTML ; ;Samuel A. Rebelsky, firstname.lastname@example.org
http://creativecommons.org/licenses/by-nc/2.5/or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.