Skip to main content.
-->
July 17th, 2007

Solution to SICP Exercise 2.12

Structure and Interpretation of Computer Programs

One solution to Exercise 2.12:

(define (make-center-percent c p)
  (make-center-width c (* c (/ p 100))))

(define (percent i)
  (* (/ (width i) (center i)) 100))

Posted by Ken Dyck in Programming

3 Comments »

This entry was posted on Tuesday, July 17th, 2007 at 6:30 pm and is filed under Programming. You can follow any responses to this entry through the comments RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 Responses to “Solution to SICP Exercise 2.12”

  1. dmitry says:

    Hi, Ken! I’m reading SICP to and post some of my solutions in my blog (http://www.neverov.blogspot.com). Good luck!

  2. Hairy says:

    Why do I even bother checking this blog anymore?

  3. theloserblog says:

    Give him some time Hairy. He must be working on the interval arithmetic package in exercise 2.16.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>