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