Skip to content

Commit

Permalink
Update example.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderthclark committed Jan 25, 2025
1 parent 231f8a5 commit 9ee36bc
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
{
"cell_type": "code",
"execution_count": 10,
"id": "c07b6c66",
"id": "24eba0f3",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -302,7 +302,7 @@
{
"cell_type": "code",
"execution_count": 12,
"id": "577c8307",
"id": "db904470",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -330,7 +330,7 @@
},
{
"cell_type": "markdown",
"id": "08d11612",
"id": "6d1fa88b",
"metadata": {},
"source": [
"# Taxes"
Expand All @@ -339,7 +339,7 @@
{
"cell_type": "code",
"execution_count": 13,
"id": "c2faa8a6",
"id": "0fc5cc55",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -375,7 +375,7 @@
},
{
"cell_type": "markdown",
"id": "87ae233b",
"id": "7ef02a18",
"metadata": {},
"source": [
"# Subsidy"
Expand All @@ -384,7 +384,7 @@
{
"cell_type": "code",
"execution_count": 14,
"id": "9efaf29b",
"id": "a43d3953",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -424,7 +424,7 @@
},
{
"cell_type": "markdown",
"id": "66098d95",
"id": "13de0592",
"metadata": {},
"source": [
"# Price Controls"
Expand All @@ -433,7 +433,7 @@
{
"cell_type": "code",
"execution_count": 15,
"id": "05187637",
"id": "aecfe839",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -475,7 +475,7 @@
{
"cell_type": "code",
"execution_count": 16,
"id": "2b9eedd8",
"id": "1e0d1b25",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -516,7 +516,7 @@
},
{
"cell_type": "markdown",
"id": "69e1ee31",
"id": "679e2160",
"metadata": {},
"source": [
"# World Trade"
Expand All @@ -525,7 +525,7 @@
{
"cell_type": "code",
"execution_count": 17,
"id": "4a3fec41",
"id": "be5862b5",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -569,7 +569,7 @@
{
"cell_type": "code",
"execution_count": 18,
"id": "e40c615c",
"id": "22246cd6",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -606,8 +606,6 @@
"ax = m.plot(surplus=True)\n",
"ax.set_title(f\"Equilibrium with Tariff\\nDWL = ${m.dwl:.2f}\")\n",
"\n",
"y1 = m.demand.p(7), m.demand.p(8)\n",
"\n",
"print(f\"Consumer Surplus: ${m.consumer_surplus:.2f}\")\n",
"print(f\"Producer Surplus: ${m.producer_surplus:.2f}\")\n",
"print(f\"Imports: {m.imports}\" )"
Expand All @@ -616,7 +614,7 @@
{
"cell_type": "code",
"execution_count": 19,
"id": "bb8cc753",
"id": "4aaa3e6f",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -661,7 +659,7 @@
{
"cell_type": "code",
"execution_count": 20,
"id": "2ae0ca4d",
"id": "e142b6c9",
"metadata": {},
"outputs": [
{
Expand Down

0 comments on commit 9ee36bc

Please sign in to comment.