A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • 5 years ago

PSet 1.b :Please explain why I get huge log values. For instance, Python is calculating log(3) = 1.09861228867. Did any of you guys have the same problem? How can I fix this?

  • This Question is Closed
  1. Owlfred
    • 5 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. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Python uses log with a base of e by default (i.e.ln) , so if you were to math.log(3,10) you would get the answer you expect (the second parameter sets the base)

  3. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    OooooO! I have to change my answer lol!!!! Great question! I have forgotten so much of my maths, I assumed log(3) should equal that.

  4. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I've been studying up on logs. How do you know that the base should be 10? The question simply asks to find the log of each prime (then sum up to prime n). It does not suggest what the base should be...

  5. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    OooooO! Now I'm starting to get it... I'm so bad at maths! So the base should be e, e being 2.72ish

  6. 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

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.