Advertisement
Guest User

Newton's Method for Integral Parameter

a guest
Mar 11th, 2023
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. import math
  2. t = 0
  3. for i in range(100):
  4. nsum = -3/2
  5. dsum = 0
  6. for j in range(100):
  7. nsum = nsum + 1 / (math.factorial(j) * (t+1+j))
  8. dsum = dsum + 1 / (math.factorial(j) * (t+1+j) ** 2)
  9. t = t + nsum / dsum
  10. print(t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement