A community for students.
Here's the question you clicked on:
 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?
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

Owlfred
 5 years ago
Best ResponseYou've already chosen the best response.0Hoot! 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!

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Python 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)

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0OooooO! I have to change my answer lol!!!! Great question! I have forgotten so much of my maths, I assumed log(3) should equal that.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I'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...

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0OooooO! Now I'm starting to get it... I'm so bad at maths! So the base should be e, e being 2.72ish
Ask your own question
Sign UpFind more explanations on OpenStudy
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
 Engagement 19 Mad Hatter
 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.