0
Is it possible for me to import cosine from math in python
Example From math import cos
5 Réponses
+ 4
If you wonder why these functions give weird results, it might be about that they expect radians.
If you are not used with radians, you can import the radians function, which converts degrees into radians:
from math import cos, radians
cos(radians(60)) ---> 0.5
+ 6
Why don't you just try it? What's there to ask?
+ 3
Yes.
+ 2
Seb
Thanks bro u really have me the answer. Really appreciated
0
Yeah