QB / QB64 Discussion Forum      Other Subforums, Links and Downloads

 Return to Index  


February 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)

or you could do:
x = EXP(2/2)
for i = 2 to 22: x = x + sin(x): next
print x

 Respond to this message   

 Copyright © 1999-2018 Network54. All rights reserved.   Terms of Use   Privacy Statement