CMPU-181, Spring 2013 Code from class (interactions) Feb. 4, 2013 Welcome to DrScheme, version 4.2.1 [3m]. Language: Swindle; memory limit: 128 megabytes. > (+ 2 3) 5 > + # > * # > - # > not # > member # > append # > (1 2 3) . . procedure application: expected procedure, given: 1; arguments were: 2 3 > (/ 2 3) 2/3 > (/ 2.0 3) 0.6666666666666666 > (define xyz (+ 2 30)) > xyz 32 > (+ xyz xyz) 64 > (+ (* 10 10) (* 50 40 (/ 73 21.))) 7052.380952380952 > (cos (/ 3.14159 4)) 0.7071072502792263 > (1 2 3) . . procedure application: expected procedure, given: 1; arguments were: 2 3 > '(1 2 3) (1 2 3) > (append '(1 2 3) '(4 5)) (1 2 3 4 5) > (list 1 2 3 4 5 6) (1 2 3 4 5 6) > (list 1 (+ 2 3) (* 10 10) 5 6) (1 5 100 5 6) > (list xyz xyz) (32 32) > (list 'xyz xyz) (xyz 32) > (list 'xyz '(+ 2 3)) (xyz (+ 2 3)) > (lambda (x) (* x x)) # > (lambda (x) x) # > (lambda (x) (* x x x)) # > (define square (lambda (x) (* x x))) > square # > (square 11) 121 > (square 1000) 1000000 > (square #t) . . *: expects type as 1st argument, given: #t; other arguments were: #t >