Skip to content

Commit dd9f006

Browse files
authored
Merge pull request #213 from QuantEcon/update_intro_sd
[intro_supply_demand] fix some typos
2 parents 2d81dbd + d1885f2 commit dd9f006

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lectures/intro_supply_demand.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ $$
375375
$$
376376
377377
$$
378-
p = i_s(q) := s_0 + s_1 q^{1.2}
378+
p = i_s(q) := s_0 + s_1 q^{1.8}
379379
$$
380380
381381
All parameters are positive, as before.
@@ -476,7 +476,7 @@ assumption that the price is the same for buyers and sellers:
476476
477477
$$
478478
W(q)
479-
= \int_0^q i_d(x) dx - \int_0^q i_q(x) dx
479+
= \int_0^q i_d(x) dx - \int_0^q i_s(x) dx
480480
$$
481481
482482
Solve the integrals and write a function to compute this quantity numerically
@@ -593,7 +593,7 @@ from scipy.optimize import newton
593593
def excess_demand(q):
594594
return market.inverse_demand(q) - market.inverse_supply(q)
595595
596-
equilibrium_q = newton(excess_demand, 0.1)
596+
equilibrium_q = newton(excess_demand, 0.99)
597597
print(f"{equilibrium_q: .5f}")
598598
```
599599

0 commit comments

Comments
 (0)