Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import *
- from random import *
- a=x=0.001
- def dE(x):return 2*(sin(x)+x+1)*(cos(x)+1)
- for i in xrange(1000): x-=dE(x)*a
- print x
- #=>x (only those who are truly worthy will know what x is)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement