Computational General Equilibrium > 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.

Algorithm

newton.ox

Test Models

market.ox Small multi-agent model of a single market 
market.out Output from running oxl on market.ox 
test-nan.ox Defective version of market.ox illustrating handling of NaNs. 
test-nan.out Output from test-nan.ox 
Site Index | Zoom | Admin
URL: http://wilcoxen.maxwell.insightworks.com/pages/484.html
Peter J Wilcoxen, The Maxwell School, Syracuse University
Revised 02/24/2005