Ask your own question, for FREE!
MIT 6.001 Structure and Interpretation of Computer Programs, Spring 2005 19 Online
OpenStudy (julie):

How exactly do these procedures work? (define (square x) (exp (double (log x)))) (define (double x) (+ x x))

OpenStudy (owlfred):

Hoot! You just asked your first question! Hang tight while I find people to answer it for you. You can thank people who give you good answers by clicking the 'Good Answer' button on the right!

OpenStudy (shadowfiend):

Pretty staightforward; remember how logs/exponents work: \[\begin{align} exp(double (log x)) &= e^{2 \ln x}\\ &= e^{\ln x^2}\\ &= x^2 \end{align}\] Have a look at http://en.wikipedia.org/wiki/Logarithm for more.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!