Last active
June 27, 2024 17:05
-
-
Save ritog/9e3f54923ec3588a6327d1694489b271 to your computer and use it in GitHub Desktop.
Exercise 1.3 of SICP
This file contains 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 (larger a b) | |
(if (> a b) | |
a | |
b)) | |
(define (square x) | |
(* x x)) | |
(define (sum-of-squares x y) | |
(+ (square x) (square y))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment