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 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
381381All 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
482482Solve the integrals and write a function to compute this quantity numerically
@@ -593,7 +593,7 @@ from scipy.optimize import newton
593593def 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 )
597597print(f"{equilibrium_q: .5f}")
598598```
599599
You can’t perform that action at this time.
0 commit comments