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 004cfff commit 231f8a5
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 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": "1a490dfa",
"id": "c07b6c66",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -302,7 +302,7 @@
{
"cell_type": "code",
"execution_count": 12,
"id": "675d4d31",
"id": "577c8307",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -330,7 +330,7 @@
},
{
"cell_type": "markdown",
"id": "f4329b09",
"id": "08d11612",
"metadata": {},
"source": [
"# Taxes"
Expand All @@ -339,7 +339,7 @@
{
"cell_type": "code",
"execution_count": 13,
"id": "5ded68cc",
"id": "c2faa8a6",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -375,7 +375,7 @@
},
{
"cell_type": "markdown",
"id": "c528d47a",
"id": "87ae233b",
"metadata": {},
"source": [
"# Subsidy"
Expand All @@ -384,7 +384,7 @@
{
"cell_type": "code",
"execution_count": 14,
"id": "485bdb4d",
"id": "9efaf29b",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -424,7 +424,7 @@
},
{
"cell_type": "markdown",
"id": "21cdb32a",
"id": "66098d95",
"metadata": {},
"source": [
"# Price Controls"
Expand All @@ -433,7 +433,7 @@
{
"cell_type": "code",
"execution_count": 15,
"id": "c3cc4beb",
"id": "05187637",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -475,7 +475,7 @@
{
"cell_type": "code",
"execution_count": 16,
"id": "ad18ac53",
"id": "2b9eedd8",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -516,7 +516,7 @@
},
{
"cell_type": "markdown",
"id": "8196d789",
"id": "69e1ee31",
"metadata": {},
"source": [
"# World Trade"
Expand All @@ -525,7 +525,7 @@
{
"cell_type": "code",
"execution_count": 17,
"id": "0fabddcc",
"id": "4a3fec41",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -569,7 +569,7 @@
{
"cell_type": "code",
"execution_count": 18,
"id": "151d6e80",
"id": "e40c615c",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -607,7 +607,6 @@
"ax.set_title(f\"Equilibrium with Tariff\\nDWL = ${m.dwl:.2f}\")\n",
"\n",
"y1 = m.demand.p(7), m.demand.p(8)\n",
"#ax.fill_between([7,8], y1, m.world_price, color='purple')\n",
"\n",
"print(f\"Consumer Surplus: ${m.consumer_surplus:.2f}\")\n",
"print(f\"Producer Surplus: ${m.producer_surplus:.2f}\")\n",
Expand All @@ -617,7 +616,7 @@
{
"cell_type": "code",
"execution_count": 19,
"id": "2d25c996",
"id": "bb8cc753",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -662,7 +661,7 @@
{
"cell_type": "code",
"execution_count": 20,
"id": "b64a612a",
"id": "2ae0ca4d",
"metadata": {},
"outputs": [
{
Expand Down

0 comments on commit 231f8a5

Please sign in to comment.