Skip to content

Commit 742e6f6

Browse files
committed
Update olg.md
- fix error in previous commit
1 parent d513790 commit 742e6f6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lectures/olg.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,10 @@ Finally, here is the 45-degree diagram.
738738
kmin, kmax = 0, 0.5
739739
n = 1000
740740
k_grid = np.linspace(kmin, kmax, n)
741-
k_grid_next = k_update(k_grid,α,β)
741+
k_grid_next = np.empty_like(k_grid)
742+
743+
for i in range(n):
744+
k_grid_next[i] = k_update(k_grid[i], model)
742745
743746
fig, ax = plt.subplots(figsize=(6, 6))
744747

0 commit comments

Comments
 (0)