read
[CODE]
(define (sum term a next b)
(define (iter a result)
(if (> a b)
result
(iter (next a) (+ result (term a)))))
(iter a 0))
(define (term a) a)
(define (next a) (+ a 1))
[/CODE]
[CODE]
(define (sum term a next b)
(define (iter a result)
(if (> a b)
result
(iter (next a) (+ result (term a)))))
(iter a 0))
(define (term a) a)
(define (next a) (+ a 1))
[/CODE]