<div>We use this method to solve two examples in Chapter 2:</div><div><br></div><div>Example 2.32</div><div>Grid search for 2 dimensions</div>grid is a function to define f=x^2+y^2.<div>grids is a grid-search function to prove the bound of grid.</div><div>niter1 is a code to run grid-search program.</div><div><br></div><div><br></div><div><br></div><div>Example 2.33<br></div><div>Grid search for 3 dimensions<br></div><div>grid3 is a function to define f=x^2+y^2+z^2.<div>grids3 is a grid-search function to prove the bound of grid3.</div><div>niter2 is a code to run grid-search program.</div></div><div><br></div><div><br></div>