Welcome to DrScheme, version 103. Language: Graphical Full Scheme (MrEd) Custom. 3 > (- 1) -1 > (- 3 2) 1 > (- 4 2 3) -1 > (/ 0) /: division by zero > -1 -1 > 1/2 1/2 > (expt 13 400) 37786870282334814151124913604430818939600246072777903083947199985120353526461640114193106219127858206570843976825609274266048950817888407039519540407810239570377365944807458113005960005402187424041209970548471702151498293222751628453776763831259174389159390531809201116454356731845064026060398794299158189694728704179809120603244165434476541722083866412683509968821623680475255175689496639196746570884858521663944555205482927080046670109702376001 > 0.0 0.0 > (/ 0.0) +inf.0 > 1+2i 1+2i > (/ 0.1) 10.0 > (* 1+2i (sqrt -1)) -2+1i > (define (f a b) (+ a b)) WARNING: Interactions window is out of sync with the definitions window. Click Execute. > ---------------------------------------- (define (f a b) (+ a b)) ---------------------------------------- Welcome to DrScheme, version 103. Language: Graphical Full Scheme (MrEd) Custom. > (f 1 2) 3 > (f 1 2 3) procedure f: expects 2 arguments, given 3: 1 2 3 > (1 + 2) procedure application: expected procedure, given: 1; arguments were: + 2 > + + > 1 1 > (zero? 0.0) #t > (zero? 0.000000001) #f > (> 1 2) #f > (= 30 30) #t > (define (g x) (= x 5)) > (g 17) #f > (> 1 2 3 4) #f > (< 1 2 3 4) #t > 'apple 'apple > (eq? 'apple 'banana) #f > (eq? 'apple 'apple) #t > 7 7 > apple reference to undefined identifier: apple > (cond) > (cond [#t 5]) 5 > (cond [(= 1 1) 5]) 5 > (cond [(+ 1 1) 5]) 5 > (cond [0 5]) 5 > (cond [#f a]) > (cond [#f (/ 0)]) > (cond [#t (/ 0)]) /: division by zero > # syntax error: unexpected end of file inside # syntax > 3T reference to undefined identifier: 3t > #T #t > (f (+ 1 2) (* 6 8)) 51 > (cons 1 2) (cons 1 2) > (+ (cons 1 2) 4) +: expects type as 1st argument, given: (cons 1 2); other arguments were: 4 > (cons 1 (cons 2 (cons 3 4))) (cons 1 (cons 2 (cons 3 4))) > (cons (cons 2 3) 6) (cons (cons 2 3) 6) > (cons 1 (+ 1 1)) (cons 1 2) > (cons 1 (cons 2 (cons 3 (+ 4 5 6 7)))) (cons 1 (cons 2 (cons 3 22))) > (cddr (cons 1 (cons 2 3))) 3 > (cadr (cons 1 (cons 2 3))) 2 > (car (cdr (cons 1 (cons 2 3)))) 2 > (car 1) car: expects argument of type ; given 1 > (cons 1 (cons 2 '())) (list 1 2) > (list 1 2) (list 1 2) > (list 1 (+ 2 3)) (list 1 5) > '() empty > (cons '() 1) (cons empty 1) > empty reference to undefined identifier: empty > '(1 2) (list 1 2) > '(a b) (list 'a 'b) > '1 1 > '(1 2 (3 4)) (list 1 2 (list 3 4)) > '(1 (a) g) (list 1 (list 'a) 'g) > '(1 2 (+ 3 4)) (list 1 2 (list '+ 3 4)) > '+ '+ > '(1 . 2) (cons 1 2) > '(1 (a . g) 7) (list 1 (cons 'a 'g) 7) > (list 1 (+ 2 3)) (list 1 5) > (car (list 1)) 1 > (cadr (list 1 2)) 2 >