Skip to content

Commit a1732e2

Browse files
authored
Update ifp.md
1 parent f01201f commit a1732e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lectures/ifp.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ plt.show()
546546
:class: dropdown
547547
```
548548

549-
这是一个解决方案
549+
参考答案
550550

551551
```{code-cell} ipython3
552552
r_vals = np.linspace(0, 0.04, 4)
@@ -697,7 +697,7 @@ plt.show()
697697
:class: dropdown
698698
```
699699

700-
这是一个解决方案
700+
参考答案
701701

702702
```{code-cell} ipython3
703703
M = 25
@@ -706,13 +706,13 @@ fig, ax = plt.subplots()
706706
707707
asset_mean = []
708708
for r in r_vals:
709-
print(f'Solving model at r = {r}')
709+
print(f'在r = {r}处求解')
710710
ifp = IFP(r=r)
711711
mean = np.mean(compute_asset_series(ifp, T=250_000))
712712
asset_mean.append(mean)
713713
ax.plot(asset_mean, r_vals)
714714
715-
ax.set(xlabel='capital', ylabel='interest rate')
715+
ax.set(xlabel='资本', ylabel='利率')
716716
717717
plt.show()
718718
```

0 commit comments

Comments
 (0)