{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Compute root of Rosencrantz function\n", "\n", "**Randall Romero Aguilar, PhD**\n", "\n", "This demo is based on the original Matlab demo accompanying the Computational Economics and Finance 2001 textbook by Mario Miranda and Paul Fackler.\n", "\n", "Original (Matlab) CompEcon file: **demslv02.m**\n", "\n", "Running this file requires the Python version of CompEcon. This can be installed with pip by running\n", "\n", " !pip install compecon --upgrade\n", "\n", "Last updated: 2022-Sept-04\n", "
| \n", " | Time | \n", "Norm of f | \n", "x1 | \n", "x2 | \n", "
|---|---|---|---|---|
| Newton | \n", "7.397294 | \n", "2.043809 | \n", "-0.724236 | \n", "0.522311 | \n", "
| Broyden | \n", "6.598163 | \n", "2.320916 | \n", "-0.617309 | \n", "0.375372 | \n", "