17.11.2012 Views

Numerical recipes

Numerical recipes

Numerical recipes

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

454 Chapter 10. Minimization or Maximization of Functions<br />

}<br />

lower point, i.e., do a one-dimensional contraction.<br />

ysave=yhi;<br />

ytry=amotsa(p,y,psum,ndim,pb,yb,funk,ihi,&yhi,0.5);<br />

if (ytry >= ysave) { Can’t seem to get rid of that high point.<br />

for (i=1;i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!