This preview shows page 1. Sign up to view the full content.
Unformatted text preview: 2*(y+deltay)^2+180)*exp(-((x+deltax)^2+(y+deltay)^2)/1000); if f1<f0 x=x+deltax; y=y+deltay; a=a+1; else if exp(f0)/exp(f1)>rand() x=x+deltax; y=y+deltay; else x=x; y=y; end r=r+1; end end x y a r...
View Full Document
This note was uploaded on 05/18/2011 for the course PHYSICS 100 taught by Professor Bayas during the Spring '11 term at Instituto Politecnico National Escuela Superior de.
- Spring '11