From c9cad65d1a4def3098bb7ff414c673ce9d2f9b8c Mon Sep 17 00:00:00 2001 From: Lukas Baumann Date: Thu, 18 Feb 2021 10:26:10 +0100 Subject: [PATCH] Create 3 - Watch the Pendulum.py --- 8/3 - Watch the Pendulum.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 8/3 - Watch the Pendulum.py diff --git a/8/3 - Watch the Pendulum.py b/8/3 - Watch the Pendulum.py new file mode 100644 index 0000000..0ba48dd --- /dev/null +++ b/8/3 - Watch the Pendulum.py @@ -0,0 +1,5 @@ +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))