Scheme笔记(1)

(define pi 3.14159)
(define radius 10)
(* pi (* radius radius))
(define circumference (* 2 pi radius))
circumference
(define pi 100000)
pi
circumference
(define (square x) (* x x))
(define (sum-of-squares x y) (+ (square x) (square y)))
posted @ 2015-01-13 22:37  极地渔翁.NTLD  阅读(199)  评论(0编辑  收藏  举报