CS151.02 2010S Functional Problem Solving
[Skip to Body]
Primary:
[Front Door]
[Schedule]
-
[Academic Honesty]
[Instructions]
Current:
[Outline]
[EBoard]
[Reading]
[Lab]
-
[Assignment]
[Quiz]
Groupings:
[Assignments]
[EBoards]
[Examples]
[Exams]
[Handouts]
[Labs]
[Outlines]
[Projects]
[Quizzes]
[Readings]
References:
[A-Z]
[By Topic]
-
[Scheme Report (R5RS)]
[R6RS]
[TSPL4]
Related Courses:
[CSC151.02 2009S (Weinman)]
[CSC151.02 2009S (Davis)]
[CSC151 2009F (Rebelsky)]
Misc:
[SamR]
[MediaScript]
[GIMP]
Back to Programing the GIMP Tools. On to Drawings as Values.
This outline is also available in PDF.
Held: Tuesday, February 2, 2010
Summary: We explore a bit more about data in Scheme, particularly the ways in which our version of Scheme supports numbers.
Related Pages:
Notes:
Overview:
+
) on numbers and we
can use the string-append
operation on strings.
numberstype, Scheme provides a variety of kinds of numbers.
number?
,
real?
,
integer?
,
exact?
, and
inexact?
.
mod
(modulo, modulus) operation is one of the trickier
operations we use in this class (and we use it a lot).
mod
is 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 n
-1.
Back to Programing the GIMP Tools. On to Drawings as Values.
[Skip to Body]
Primary:
[Front Door]
[Schedule]
-
[Academic Honesty]
[Instructions]
Current:
[Outline]
[EBoard]
[Reading]
[Lab]
-
[Assignment]
[Quiz]
Groupings:
[Assignments]
[EBoards]
[Examples]
[Exams]
[Handouts]
[Labs]
[Outlines]
[Projects]
[Quizzes]
[Readings]
References:
[A-Z]
[By Topic]
-
[Scheme Report (R5RS)]
[R6RS]
[TSPL4]
Related Courses:
[CSC151.02 2009S (Weinman)]
[CSC151.02 2009S (Davis)]
[CSC151 2009F (Rebelsky)]
Misc:
[SamR]
[MediaScript]
[GIMP]
Disclaimer:
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 Tue May 11 09:03:07 2010.
The source to the document was last modified on Thu Jan 21 13:05:12 2010.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS151/2010S/Outlines/outline.06.html
.
You may wish to
validate this document's HTML
;
;
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.