fork download
  1. # 0J/QsNGA0YXQvtC80LXQvdC60L4=
  2. s=13.;x=13.;
  3.  
  4. def f(x):
  5. return (x+s/x)/2
  6.  
  7.  
  8.  
  9. for i in range(10):
  10. x=f(x)
  11.  
  12.  
  13. print(x)
Success #stdin #stdout 0.09s 14212KB
stdin
Standard input is empty
stdout
3.6055512754639896