summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-08-04 21:53:04 +0000
committerrsiddharth <s@ricketyspace.net>2018-08-04 21:53:04 +0000
commitab88f8ee42ab2934bed5eac5f4be9edc61be7cf8 (patch)
treebf19cd878c36d6d79be24a25b0d4337a3d69bd06
parent28793f1fec7cf8d371286e87276f714f77422eda (diff)
Add (net ricketyspace sicp two eight).
-rw-r--r--net/ricketyspace/sicp/two/eight.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/ricketyspace/sicp/two/eight.scm b/net/ricketyspace/sicp/two/eight.scm
new file mode 100644
index 0000000..7a7611e
--- /dev/null
+++ b/net/ricketyspace/sicp/two/eight.scm
@@ -0,0 +1,11 @@
+;;;; Under Creative Commons Attribution-ShareAlike 4.0
+;;;; International. See
+;;;; <https://creativecommons.org/licenses/by-sa/4.0/>.
+
+(define-module (net ricketyspace sicp two eight)
+ #:use-module (net ricketyspace sicp two seven)
+ #:export (sub-interval))
+
+(define (sub-interval x y)
+ (make-interval (- (lower-bound x) (lower-bound y))
+ (- (upper-bound x) (upper-bound y))))