Skip to content

Commit 362fab5

Browse files
committed
remove njit from ak2
1 parent 4b4ac13 commit 362fab5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lectures/ak2.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ $$
408408
```{code-cell} ipython3
409409
import numpy as np
410410
import matplotlib.pyplot as plt
411-
from numba import njit
411+
from numba import jit
412412
from quantecon.optimize import brent_max
413413
```
414414
@@ -433,22 +433,22 @@ Knowing $\hat K$, we can calculate other equilibrium objects.
433433
Let's first define some Python helper functions.
434434
435435
```{code-cell} ipython3
436-
@njit
436+
@jit
437437
def K_to_Y(K, α):
438438
439439
return K ** α
440440
441-
@njit
441+
@jit
442442
def K_to_r(K, α):
443443
444444
return α * K ** (α - 1)
445445
446-
@njit
446+
@jit
447447
def K_to_W(K, α):
448448
449449
return (1 - α) * K ** α
450450
451-
@njit
451+
@jit
452452
def K_to_C(K, D, τ, r, α, β):
453453
454454
# optimal consumption for the old when δ=0
@@ -913,7 +913,7 @@ Let's implement this "guess and verify" approach
913913
We start by defining the Cobb-Douglas utility function
914914
915915
```{code-cell} ipython3
916-
@njit
916+
@jit
917917
def U(Cy, Co, β):
918918
919919
return (Cy ** β) * (Co ** (1-β))
@@ -924,7 +924,7 @@ We use `Cy_val` to compute the lifetime value of an arbitrary consumption plan,
924924
Note that it requires knowing future prices $r_{t+1}$ and tax rate $\tau_{t+1}$.
925925
926926
```{code-cell} ipython3
927-
@njit
927+
@jit
928928
def Cy_val(Cy, W, r_next, τ, τ_next, δy, δo_next, β):
929929
930930
# Co given by the budget constraint

0 commit comments

Comments
 (0)