Warning! You are being recorded (and transcribed) (provided the technology is working correctly).
Approximate overview
TPS: What should they know about the class?
Scholarly
Cultural
Peer
Wellness
Misc
What’s with this 'solid in the symbols reading?
It’s something we used in the old image libary. Sam forgot to edit the reading.
Why do we learn symbols?
Mostly so that you learn why we write things like
'symbol. We may return to them later in the semester.
Can you compare symbols?
You can compare them to each other for equality, but they are not ordered.
No symbol equals any number.
What’s the difference between a symbol and a string?
Symbols are “atomic”; you cannot decompose a symbol into component parts.
Strings are “compound”; you can decompse a string into smaller strings, extract letters, etc.
You can also compare strings according to a “natural” ordering. For example, “apple” should be before “zebra” in the ordering most of us use.
Can you give an example of when you’d use symbols instead of strings?
Not at the moment. Stay tuned.
I can’t find equilateral triangles. Should I use 2htdp/image?
NO.
Perhaps your 151 library is out of date. Update it.
I can’t find solid-right-triangle.
That’s intentional. You’re writing it!
All of today’s problems are “think and try” rather than “write a procedure”. Hence, the autograder will only check that the file exists.
What do you expect to get for (* (sqrt 2) (sqrt 2))?
2
Do you get 2?
No
What’s the difference?
Um
(- 2 (* sqrt 2) (sqrt 2)).
Which is something like
4.001212e-16. I don’t know what that means.
It means 4.001212 * 10 to the -16, or .000000000000004001212.
Some fun things to try
> (define x (expt 2 100))
> (define ex (exact->inexact x))
> x
> ex
> (+ x 1)
> (+ ex 1)
> (- (+ x 1) 1)
> (- (+ ex 1) 1)