cos1
1 minute to read
We are asked to compute the cosine of 42 radians, rounded to 6 decimal places. This is simple:
$ python3 -q
>>> import math
>>> math.cos(42)
-0.39998531498835127
>>> round(math.cos(42), 6)
-0.399985
>>> 'ictf{' + str(round(math.cos(42), 6)) + '}'
'ictf{-0.399985}'