You are viewing a single comment's thread. Return to all comments →
[print(f"{sum(((-1)**i)/(2*i+1) for i in range(int(input()))):.15f}") for _ in range(int(input()))]
Seems like cookies are disabled on this browser, please enable them to open this website
Leibniz
You are viewing a single comment's thread. Return to all comments →
[print(f"{sum(((-1)**i)/(2*i+1) for i in range(int(input()))):.15f}") for _ in range(int(input()))]