File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -555,7 +555,7 @@ Now let's see how fast it runs:
555
555
%time calculate_pi()
556
556
```
557
557
558
- If we switch of JIT compilation by removing ` @njit ` , the code takes around
558
+ If we switch off JIT compilation by removing ` @njit ` , the code takes around
559
559
150 times as long on our machine.
560
560
561
561
So we get a speed gain of 2 orders of magnitude--which is huge--by adding four
Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ from numpy.fft import fft, ifft
63
63
from numpy.lib.scimath import *
64
64
```
65
65
66
- However, it's more common and better practice to use NumPy functionality explicitly
66
+ However, it's more common and better practice to use NumPy functionality explicitly.
67
+
67
68
68
69
``` {code-cell} python3
69
70
import numpy as np
@@ -442,7 +443,7 @@ We leave you to investigate the [set of available routines](http://docs.scipy.or
442
443
(sp_ex1)=
443
444
### Exercise 1
444
445
445
- Previously we discussed the concept of {ref}` recursive function calls <recursive_functions> ` .
446
+ In {ref} ` this lecture <python_advanced_features> ` , we will discuss the concept of {ref}` recursive function calls <recursive_functions> ` .
446
447
447
448
Try to write a recursive implementation of homemade bisection function {ref}` described above <bisect_func> ` .
448
449
You can’t perform that action at this time.
0 commit comments