File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 375
375
$$
376
376
377
377
$$
378
- p = i_s(q) := s_0 + s_1 q^{1.2 }
378
+ p = i_s(q) := s_0 + s_1 q^{1.8 }
379
379
$$
380
380
381
381
All parameters are positive, as before.
@@ -476,7 +476,7 @@ assumption that the price is the same for buyers and sellers:
476
476
477
477
$$
478
478
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
480
480
$$
481
481
482
482
Solve the integrals and write a function to compute this quantity numerically
@@ -593,7 +593,7 @@ from scipy.optimize import newton
593
593
def excess_demand(q):
594
594
return market.inverse_demand(q) - market.inverse_supply(q)
595
595
596
- equilibrium_q = newton(excess_demand, 0.1 )
596
+ equilibrium_q = newton(excess_demand, 0.99 )
597
597
print(f"{equilibrium_q: .5f}")
598
598
```
599
599
You can’t perform that action at this time.
0 commit comments