Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def calcula_euler(x, n):
- expoente = 1
- divisor = 2
- const = pow(x, divisor)/(divisor*n)
- expoente += 1
- divisor += 1
- euler = 1 + x + const
- print(const)
- print(euler)
- euler_true = True
- desliga = 0
- while euler_true:
- print(calcula_euler(1, 1))
- desliga += 1
- if desliga > 10:
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement