Skip to content

Commit

Permalink
Improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
dwinston committed Jun 11, 2014
1 parent 4f067dc commit 0e8172f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ex1.7.scm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@


(define (good-enough? guess x)
(< (abs (- 1 (/ (improve guess x) guess))) 0.001))
(< (abs (- 1 (/ (improve guess x) guess)))
0.001))


1 ]=> (/ (sqrt (square 0.001)) 0.001)
Expand Down
3 changes: 2 additions & 1 deletion ex1.8.scm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
3))

(define (good-enough? guess x)
(< (abs (- 1 (/ (improve guess x) guess))) 0.001))
(< (abs (- 1 (/ (improve guess x) guess)))
0.001))

(define (cube-root x)
(cube-root-iter 1.0 x))
Expand Down

0 comments on commit 0e8172f

Please sign in to comment.