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
;Exercise 1.3. Define a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers. | |
(define (sum_squares_top2 c1 c2 c3) | |
(+ | |
(square max(c1 c2)) | |
(square max((min c1 c2) c3)))) |