#Sec. 17.2, Example 4

x = 2.0
for i in range(10):
    num = 2*(sin(x)-x*cos(x))
    den = (1 - 2*cos(x))
    y = num / float(den)
    print i, x, num, den, y
    x = y

*<Dr. A. W. Pangantiwar>, <Associate Professor in Physics>, <Govt. College of Engineering, KARAD - 415124. Dist. Satara>

Kreyszig-17.2-4 (last edited 2010-12-17 11:50:14 by 172)