diff --git a/lectures/numba.md b/lectures/numba.md index dd90e086..a763fb06 100644 --- a/lectures/numba.md +++ b/lectures/numba.md @@ -555,7 +555,7 @@ Now let's see how fast it runs: %time calculate_pi() ``` -If we switch of JIT compilation by removing `@njit`, the code takes around +If we switch off JIT compilation by removing `@njit`, the code takes around 150 times as long on our machine. So we get a speed gain of 2 orders of magnitude--which is huge--by adding four diff --git a/lectures/scipy.md b/lectures/scipy.md index da20e1f5..6d643d2d 100644 --- a/lectures/scipy.md +++ b/lectures/scipy.md @@ -63,7 +63,8 @@ from numpy.fft import fft, ifft from numpy.lib.scimath import * ``` -However, it's more common and better practice to use NumPy functionality explicitly +However, it's more common and better practice to use NumPy functionality explicitly. + ```{code-cell} python3 import numpy as np @@ -442,7 +443,7 @@ We leave you to investigate the [set of available routines](http://docs.scipy.or (sp_ex1)= ### Exercise 1 -Previously we discussed the concept of {ref}`recursive function calls `. +In {ref}`this lecture `, we will discuss the concept of {ref}`recursive function calls `. Try to write a recursive implementation of homemade bisection function {ref}`described above `.