#==========================================
#  Sprints - 15 Dec 2010 
#  ANIL PANGANTIWAR - SCIPYIN20100031
#==========================================

# Page 843, Example 3

c = 2
x = 1
for i in range(10):
      y = (x + c/x) / 2
      print float(y)
      x = y



# Page 843, Example 5

x = 1
for i in range(10):
      y = (2*x*x*x + 1) / (3*x*x + 1)
      print float(y)
      x = y

Kreyszig-anilpangantiwar (last edited 2010-12-17 04:36:35 by 172)