Skip to content

Commit 58a8676

Browse files
Fix wrong formula and matrix
1 parent 604d707 commit 58a8676

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lectures/newton_method.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ performance of the two methods again.
463463
We will see a significant performance gain when using Netwon's method.
464464

465465

466+
(two_goods_market)=
466467
### A Two Goods Market Equilibrium
467468

468469
Let's start by computing the market equilibrium of a two-good problem.
@@ -479,7 +480,7 @@ $$
479480
Demand of good $i$ at price $p$ is,
480481

481482
$$
482-
q^d_i (p) = \exp(-a_{i0} p_0) + \exp(-a_{i1} p_1) + c_i
483+
q^d_i (p) = e^{-a_{i0} p_0 - a_{i1} p_1} + c_i
483484
$$
484485

485486
Here $c_i$, $b_i$ and $a_{ij}$ are parameters.
@@ -549,13 +550,13 @@ A = \begin{pmatrix}
549550
\end{pmatrix},
550551
\qquad
551552
b = \begin{pmatrix}
552-
0 \\
553-
0
553+
1 \\
554+
1
554555
\end{pmatrix}
555556
\qquad \text{and} \qquad
556557
c = \begin{pmatrix}
557-
0 \\
558-
0
558+
1 \\
559+
1
559560
\end{pmatrix}
560561
$$
561562

0 commit comments

Comments
 (0)