Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
math.cos(math.pi*0.5) = 6.123233995736766e-17
note the e-17 at the end of the number
https://www.tutorialspoint.com/python/python_numbe...
[[email protected] etc]$ python3
Python 3.4.3 (default, Aug 9 2016, 15:36:17)
[GCC 5.3.1 20160406 (Red Hat 5.3.1-6)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
>>> math.cos(0.5*math.pi )
6.123233995736766e-17
>>>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question