Skip to content

Commit 772bf08

Browse files
committed
Fix a few typos
1 parent 5a4e5ed commit 772bf08

File tree

14 files changed

+21
-21
lines changed

14 files changed

+21
-21
lines changed

_weave/lecture02/optimizing.jmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ interrupting every single `+`. Fortunately these function calls disappear during
11181118
the compilation process due to what's known as inlining. Essentially, if the
11191119
function call is determined to be "cheap enough", the actual function call
11201120
is removed and the code is basically pasted into the function caller. We can
1121-
force a function call to occur by teling it to not inline:
1121+
force a function call to occur by telling it to not inline:
11221122

11231123
```julia
11241124
@noinline fnoinline(x,y) = x + y

_weave/lecture03/sciml.jmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ sol = solve(prob)
679679
plot(sol,label=["Velocity" "Position"])
680680
```
681681

682-
Don't worry if you don't understand this sytnax yet: we will go over differential
682+
Don't worry if you don't understand this syntax yet: we will go over differential
683683
equation solvers and DifferentialEquations.jl in a later lecture.
684684

685685
Let's say we want to learn how to predict the force applied on the spring at

_weave/lecture04/dynamical_systems.jmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ step through the function pointer.
395395

396396
What will approximately be the value of this dynamical system after 1000 steps
397397
if you start at `1.0` with parameter `p=0.25`? Can you guess without solving the
398-
system? Think about steady states and stabiltiy.
398+
system? Think about steady states and stability.
399399

400400
```julia
401401
solve_system(f,1.0,0.25,1000)

_weave/lecture05/parallelism_overview.jmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Each process can have many compute threads. These threads are the unit of
4747
execution that needs to be done. On each task is its own stack and a virtual
4848
CPU (virtual CPU since it's not the true CPU, since that would require that the
4949
task is ON the CPU, which it might not be because the task can be temporarily
50-
haulted). The kernel of the operating systems then *schedules* tasks, which
50+
halted). The kernel of the operating systems then *schedules* tasks, which
5151
runs them. In order to keep the computer running smooth, *context switching*,
5252
i.e. changing the task that is actually running, happens all the time. This is
5353
independent of whether tasks are actually scheduled in parallel or not.
@@ -82,7 +82,7 @@ be polled, then it will execute the command, and give the result. There are two
8282
variants:
8383

8484
- Non-Blocking vs Blocking: Whether the thread will periodically poll for whether that task is complete, or whether it should wait for the task to complete before doing anything else
85-
- Synchronous vs Asynchronus: Whether to execute the operation as initiated by the program or as a response to an event from the kernel.
85+
- Synchronous vs Asynchronous: Whether to execute the operation as initiated by the program or as a response to an event from the kernel.
8686

8787
I/O operations cause a *privileged context switch*, allowing the task which is
8888
handling the I/O to directly be switched to in order to continue actions.
@@ -117,7 +117,7 @@ a higher level interrupt which Julia handles the moment the safety locks says
117117
it's okay (these locks occur during memory allocations to ensure that memory
118118
is not corrupted).
119119

120-
#### Asynchronus Calling Example
120+
#### Asynchronous Calling Example
121121

122122
This example will become more clear when we get to distributed computing, but
123123
for think of `remotecall_fetch` as a way to run a command on a different computer.

_weave/lecture06/styles_of_parallelism.jmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ using blocking structures, one needs to be careful about deadlock!
351351
### Two Programming Models: Loop-Level Parallelism and Task-Based Parallelism
352352

353353
As described in the previous lecture, one can also use `Threads.@spawn` to
354-
do multithreading in Julia v1.3+. The same factors all applay: how to do locks
354+
do multithreading in Julia v1.3+. The same factors all apply: how to do locks
355355
and Mutex etc. This is a case of a parallelism construct having two alternative
356356
**programming models**. `Threads.@spawn` represents task-based parallelism, while
357357
`Threads.@threads` represents Loop-Level Parallelism or a parallel iterator

_weave/lecture07/discretizing_odes.jmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ system by describing the force between two particles as:
151151

152152
$$F = G \frac{m_1m_2}{r^2}$$
153153

154-
where $r^2$ is the Euclidian distance between the two particles. From here, we
154+
where $r^2$ is the Euclidean distance between the two particles. From here, we
155155
use the fact that
156156

157157
$$F = ma$$
@@ -451,7 +451,7 @@ that
451451
$$u(t+\Delta t) = u(t) + \Delta t f(u,p,t) + \mathcal{O}(\Delta t^2)$$
452452

453453
This is a first order approximation because the error in our step can be
454-
expresed as an error in the derivative, i.e.
454+
expressed as an error in the derivative, i.e.
455455

456456
$$\frac{u(t + \Delta t) - u(t)}{\Delta t} = f(u,p,t) + \mathcal{O}(\Delta t)$$
457457

@@ -542,7 +542,7 @@ be larger, even if it matches another one asymptotically.
542542

543543
## What Makes a Good Method?
544544

545-
### Leading Truncation Coeffcients
545+
### Leading Truncation Coefficients
546546

547547
For given orders of explicit Runge-Kutta methods, lower bounds for the number of
548548
`f` evaluations (stages) required to receive a given order are known:
@@ -743,7 +743,7 @@ Stiffness can thus be approximated in some sense by the condition number of
743743
the Jacobian. The condition number of a matrix is its maximal eigenvalue divided
744744
by its minimal eigenvalue and gives a rough measure of the local timescale
745745
separations. If this value is large and one wants to resolve the slow dynamics,
746-
then explict integrators, like the explicit Runge-Kutta methods described before,
746+
then explicit integrators, like the explicit Runge-Kutta methods described before,
747747
have issues with stability. In this case implicit integrators (or other forms
748748
of stabilized stepping) are required in order to efficiently reach the end
749749
time step.

_weave/lecture08/automatic_differentiation.jmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ for $e_i$ the $i$th basis vector, then
583583

584584
$f(d) = f(d_0) + Je_1 \epsilon_1 + \ldots + Je_n \epsilon_n$
585585

586-
computes all columns of the Jacobian simultaniously.
586+
computes all columns of the Jacobian simultaneously.
587587

588588
### Array of Structs Representation
589589

_weave/lecture09/stiff_odes.jmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ The most common method in the Krylov subspace family of methods is the GMRES
478478
method. Essentially, in step $i$ one computes $\mathcal{K}_i$, and finds the
479479
$x$ that is the closest to the Krylov subspace, i.e. finds the $x \in \mathcal{K}_i$
480480
such that $\Vert Jx-v \Vert$ is minimized. At each step, it adds the new vector
481-
to the Krylov subspace after orthgonalizing it against the other vectors via
481+
to the Krylov subspace after orthogonalizing it against the other vectors via
482482
Arnoldi iterations, leading to an orthogonal basis of $\mathcal{K}_i$ which
483483
makes it easy to express $x$.
484484

_weave/lecture10/estimation_identification.jmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ unscaled gradient.
560560

561561
### Multi-Seeding
562562

563-
Similarly to forward-mode having a dual number with multiple simultanious
563+
Similarly to forward-mode having a dual number with multiple simultaneous
564564
derivatives through partials $d = x + v_1 \epsilon_1 + \ldots + v_m \epsilon_m$,
565565
one can see that multi-seeding is an option in reverse-mode AD by, instead of
566566
pulling back a matrix instead of a row vector, where each row is a direction.

_weave/lecture11/adjoints.jmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ does not need to be re-calculated.
143143

144144
Using this style, Tracker.jl moves forward, building up the value and closures
145145
for the backpass and then recursively pulls back the input `Δ` to receive the
146-
derivatve.
146+
derivative.
147147

148148
### Source-to-Source AD
149149

0 commit comments

Comments
 (0)