"unused import statement (math)" and "unresolved reference 'sin'"... [SOLVED]

I just wrote the following "import-test.py" file:

import math

test = sin(3)

But the import-statement is grey: "unused import statement" 

And 'sin' is marked: "unresolved reference 'sin'"...

How do I get PyCharm to recognize or find the math module?

Thank you.

0
2 comments

OOPS!! What was I thinking... It should have been:

test = math.sin(1.57) # sin(pi/2) = 1

Sorry!

0

There doesn't seem to be a way of marking a problem as solved(?)

0

Please sign in to leave a comment.