Skip to content

Commit f52d3e4

Browse files
Horace510u7062654mmckyjstac
authored
[numpy, scipy] Edits and Corrections (#122)
* [numba] trial, please ignore * [numba] typo * [scipy] add usful feature of Numpy comparing to other libraries * [numpy] 11.8 Recursion * [scipy] Recursion * [scipy] ammended previous PR * remove Chapter 16 * Update scipy.md Co-authored-by: u7062654 <[email protected]> Co-authored-by: mmcky <[email protected]> Co-authored-by: John Stachurski <[email protected]>
1 parent 7e065ad commit f52d3e4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lectures/numba.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ Now let's see how fast it runs:
555555
%time calculate_pi()
556556
```
557557

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
559559
150 times as long on our machine.
560560

561561
So we get a speed gain of 2 orders of magnitude--which is huge--by adding four

lectures/scipy.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ from numpy.fft import fft, ifft
6363
from numpy.lib.scimath import *
6464
```
6565

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+
6768

6869
```{code-cell} python3
6970
import numpy as np
@@ -442,7 +443,7 @@ We leave you to investigate the [set of available routines](http://docs.scipy.or
442443
(sp_ex1)=
443444
### Exercise 1
444445

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>`.
446447

447448
Try to write a recursive implementation of homemade bisection function {ref}`described above <bisect_func>`.
448449

0 commit comments

Comments
 (0)