 CertainlyFebruary 12 2012 at 3:54 PM  Billy Gates (no login) 
Response to A homework problem (sshh!, don't tell Flippy) 

Since d/dx sin(x) = cos(x), sin(x) is about equal to cos(pi) * (x  pi) for x close to pi.
So we can do:
x = EXP(2/2)
x = x + sin(x)
x = x + sin(x)
x = x + sin(x)
PRINT x
or you could do:
x = EXP(2/2)
for i = 2 to 22: x = x + sin(x): next
print x
 
 Responses Better  EW Dijkstra on Feb 12, 2012


