import numpy as np

def g(t):
    return np.sin(2*t)/2 + np.pi/4

t = 0

for i in range(100):
    t = g(t)
    
print(t)