pastebin

Paste Search Dynamic
Recent pastes
ex
  1. x =float(input("enter xn"))
  2. eps =float(input("enter epsn"))
  3. import math
  4. n=0
  5. ex= 0
  6. Sn1_Sn = eps
  7. Sn=0
  8.  
  9. while abs (Sn1_Sn) >= eps:
  10.  
  11.   Sn1= (x**(n))/math.factorial(n)
  12.   n+=1
  13.   ex+=Sn1
  14.   Sn1_Sn = Sn1-Sn
  15.   Sn=Sn1
  16.   print(ex)
Parsed in 0.003 seconds