A community for students.
Here's the question you clicked on:
 0 viewing
anonymous
 4 years ago
In PS1 Problem 2 I am having trouble using log in python. I entered from math import * at the top of my code then i only have print log(2) for the rest. It is giving me the number 0.69314718056 which i believe to be incorrect. I believe the correct answer to be 0.301029996. Why am I not getting this answer?
anonymous
 4 years ago
In PS1 Problem 2 I am having trouble using log in python. I entered from math import * at the top of my code then i only have print log(2) for the rest. It is giving me the number 0.69314718056 which i believe to be incorrect. I believe the correct answer to be 0.301029996. Why am I not getting this answer?

This Question is Closed

anonymous
 4 years ago
Best ResponseYou've already chosen the best response.0tl;dr Python is telling me the log of 2 is 0.69314718056

anonymous
 4 years ago
Best ResponseYou've already chosen the best response.0My calculator says the log of 2 is 0.301029996

lucifer
 4 years ago
Best ResponseYou've already chosen the best response.1no, it's correct. log means log base e unless you specify. 0.30... is for base 10!

anonymous
 4 years ago
Best ResponseYou've already chosen the best response.0the docs are your friend F1 from IDLE in windows http://docs.python.org/library/math.html#math.log
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.