fork download
  1. S=13.
  2. x=S
  3. def f(x):
  4. return(x+S/x)/2.
  5. for i in range(10):
  6. x=f(x)
  7. print(x)
Success #stdin #stdout 0.08s 14192KB
stdin
Standard input is empty
stdout
3.6055512754639896