;; The first three lines of this file were inserted by DrRacket. They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-intermediate-reader.ss" "lang")((modname module-01.rkt) (read-case-sensitive #t) (teachpacks ()))
;; ******************************* module-01.rkt *******************************
;; Here are a few example Racket expressions.
;; When you click on the "Run" button, the results should appear below.
;; We can add:
(+ 1 1)
;; We can multiply:
(* 3 7)
;; We can divide:
(/ 42 6)
;; Create some Racket expressions and see what they do!
;; Evaluate by hand.
;; Then remove the ; and run it in Racket to check your work:
; (* 3 (+ 1 (+ (/ 6 2) 5)))
;; Evaluate by hand.
;; Then remove the ; and run it in Racket to check your work:
;(define (f x) (* x x))
;(define (g x y) (- x y))
;(g (f 2) (g 3 1))
;; Trace the program to determine what the result should be.
;; Then remove the ; and run it in Racket to check your work:
; (+ (remainder (- 10 2) (quotient 10 3)) (* 2 3))
;; Trace the program to determine what the result should be.
;; Then remove the ; and run it in Racket to check your work:
; (define (disc a b c) (sqrt (- (sqr b) (* 4 (* a c)))))
; (define (proot a b c) (/ (+ (- 0 b) (disc a b c)) (* 2 a)))
; (proot 1 3 2)