=====
CS 111 - Week 3 Lecture 2 - 2025-09-11
=====
=====
TODAY WE WILL:
=====
* announcements
* remind: scene type
* intro to 2htdp/universe function big-bang
* prep for next class
=====
* Data Science Club is starting up on
Tuesday, September 16
* meeting Tuesdays
* BSS 317
* 5:00 - 6:00 pm
* CS Club - doing Code Golf - next Wednesday, September 17
* FR 105
* 3 - 4:30 pm
* (don't forget the Math Colloquia, also --
typically tea at 3:30 pm,
talk at 4:00 pm,
BSS 302 - today, Brad Ballinger -
One Mathematician Walks Two Dogs)
* should be working on and submitting attempts
at Homework 2 - at-least-first attempts are
due by 11:59 pm tomorrow, Friday, September 12
=====
testing function check-within
=====
* when testing functions involving fractional numbers,
if a check-expect fails, you can see if check-within
helps;
* check-within still expects the expression to test
and the expected value,
BUT it also expects a 3rd argument, the margin of error
; this passes, because the values of (/ 1 3) and .33333333 are,
; while not exact, still within .001 from each other
(check-within (/ 1 3)
.33333333
.001)