Computational General Equilibrium Modeling > Solution Methods

Newton's Method in Ox

The file below called newton.ox is a basic implementation of Newton's method in the Ox programming language. The file test.ox is an example showing how it is used. The algorithm checks for numerical errors, such as dividing by zero, that result in NaNs (not a number). To see what happens when a NaN occurs, run the program test-nan.ox.
newton.ox
test-nan.ox
test.ox
Site Index | Zoom | Admin
URL: http://www.insightworks.com/pages/484.html
InsightWorks
Revised 06/04/2004