{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Approximating functions on $R$\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: **demapp01.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-Oct-22\n", "
\n", " | Numerical | \n", "Analytic | \n", "
---|---|---|
Function | \n", "1.00000000 | \n", "1.00000000 | \n", "
First Derivative | \n", "-1.00000000 | \n", "-1.00000000 | \n", "
Second Derivative | \n", "0.99999995 | \n", "1.00000000 | \n", "
Definite Integral | \n", "1.71828183 | \n", "1.71828183 | \n", "