<br><div class="gmail_quote">2009/7/4 David Yrueta <span dir="ltr"><<a href="mailto:dyrueta@gmail.com">dyrueta@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi All --<br>
<br>
Questions for both exercises refer to the function "find-root" below:<br>
<br>
;; find-root : (number -> number) number number -> number<br>
;; to determine a number R such that f has a<br>
;; root between R and (+ R TOLERANCE)<br>
;;<br>
;; ASSUMPTION: f is continuous and monotonic<br>
(define (find-root f left right)<br>
(cond<br>
[(<= (- right left) TOLERANCE) left]<br>
[else<br>
(local ((define mid (/ (+ left right) 2)))</blockquote><div><br></div><div>You might consider using floating points.</div><div>Just change 2 to 2.0.</div><div><br></div><div>-- </div><div>Jens Axel Søgaard</div><div>
<br></div></div>