Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- e = float(input())
- i = 1
- s = 0
- f = 1
- a = 1
- while abs(round(a / (2 * f), 33)) > e:
- print(a / (2 * f))
- s += a / f
- a *= -1
- i += 1
- f *= i
- print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement