Add exercise 2.8
This commit is contained in:
parent
329d0d7098
commit
d7bcd52fd0
@ -85,3 +85,8 @@
|
|||||||
(make-interval (/ 1.0 (upper-bound b))
|
(make-interval (/ 1.0 (upper-bound b))
|
||||||
(/ 1.0 (lower-bound b)))))
|
(/ 1.0 (lower-bound b)))))
|
||||||
|
|
||||||
|
;; Exercise 2.8
|
||||||
|
(defun sub-interval (a b)
|
||||||
|
(make-interval (- (lower-bound b) (lower-bound a))
|
||||||
|
(- (upper-bound b) (upper-bound a))))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user