Last active
August 29, 2015 14:06
-
-
Save Isaac-Kleinman/58ac8b4351358d7aa4a2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(define (square x) (* x x)) | |
(define (sum-square x y) | |
(+ (square x) (square y))) | |
(define (min x y) | |
(if (< x y) x y)) | |
(define (max x y) | |
(if (> x y) x y)) | |
(define (sum-square-max-2 x y z) | |
(sum-square (max x y) (max (min x y) z))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment