From 7c095825aeb2870e552ed04177355225e0677382 Mon Sep 17 00:00:00 2001 From: Yehonathan Sharvit Date: Fri, 25 Mar 2016 08:30:23 +0200 Subject: [PATCH] introduce KLIPSE in section 1.1.7 --- source/section/1.1.7.html.md | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/source/section/1.1.7.html.md b/source/section/1.1.7.html.md index 26a4409..52bf49b 100644 --- a/source/section/1.1.7.html.md +++ b/source/section/1.1.7.html.md @@ -103,22 +103,11 @@ always guess that the square root of any number is 1 (sqrt-iter 1.0 x)) ``` -If we type these definitions to the interpreter, we can use -sqrt just as we can use any function: - -``` -> (sqrt 9) -3.00009155413138 - -> (sqrt (+ 100 37)) -11.704699917758145 - -> (sqrt (+ (sqrt 2) (sqrt 3))) -1.7739279023207892 - -> (square (sqrt 1000)) -1000.000369924366 -``` +Now, let's play with it: + The sqrt `program` also illustrates that the simple procedural language we have introduced so far is sufficient for writing any