A community for students.
Here's the question you clicked on:
 0 viewing
anonymous
 3 years ago
Hello, I am using Python 2.7.3 32 bit in a Windows 7 Home Premium OS, and for some reason I cannot the the logarithmic function to work. I have attempted to <import math> and this didn't work either. Can anyone tell me how to resolve this situation? Thanks.. Jim
anonymous
 3 years ago
Hello, I am using Python 2.7.3 32 bit in a Windows 7 Home Premium OS, and for some reason I cannot the the logarithmic function to work. I have attempted to <import math> and this didn't work either. Can anyone tell me how to resolve this situation? Thanks.. Jim

This Question is Open

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0I doesn't matter the OS I think, try this line: from math import *

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0OK I will do that and see what happens,

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0it now gives me undefined 'from'

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0I put it from math import*

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0that didn't work either

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0Now it say no module named modulemath.py

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0Don't post a lot is like ... spamming, try several options and make one good post. I have 2.7.3 Python on a 64bit W7, so is not the OS as I said I try this line and it work perfectly: from math import * print log(3)

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0OK sorry about that Gianko, this is my first time to use this I didn't know how it works yet., but thanks for your help

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0Ok don't worry, I get dizzy reading post after post actually; attach your code, maybe is something else, or you miss a space like on your 3rd post, between 'import' and '*'.

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0OK the log function worked that time so believe it is OK now, that last time I put a space after the word import and before the * where as before I left out the space, So thank you very much Gianko 15, Jim

anonymous
 3 years ago
Best ResponseYou've already chosen the best response.0(y) great then!! that little mistakes makes our lives misserable haha, cya.
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.