Cos2x Formula Code Example


Example: cos2x


import math

num = int(input("Enter an angle (in degrees)"))
print(math.cos(2*num))

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android SDK Location Should Not Contain Whitespace, As This Cause Problems With NDK Tools