Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

julie

  • 4 years ago

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

  • This Question is Closed
  1. Owlfred
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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!

  2. shadowfiend
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 4

    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.

  3. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy