The Maxwell School
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
|Small multi-agent model of a single market
|Output from running oxl on market.ox
|Defective version of market.ox illustrating handling of NaNs.
|Output from test-nan.ox