csc-python-solutions/08/3 - Watch the Pendulum.py

6 lines
138 B
Python
Raw Normal View History

2021-02-18 09:26:10 +00:00
from math import cos
L = float(input())
A = float(input())
for T in range(10):
print( L * cos(A * cos(T * (9.8/L)**0.5)) - L * cos(A))