S=13.x=Sdef f(x): return(x+S/x)/2.for i in range(10): x=f(x)print(x)
Standard input is empty
3.6055512754639896
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!