Skip to content

Commit 7931244

Browse files
committed
sync instructions.md and introduction.md
1 parent d0afdad commit 7931244

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

exercises/concept/tracking-turntable/.docs/instructions.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ Turndit Inc. is producing a new turntable which can skip between tracks on a rec
44

55
There are two parts to the setup:
66

7-
The needle is suspended above the turntable and can move vertically and horizontally across the record.
7+
The needle is suspended above the turntable and can move left/right and forwards/backwards across the record (think claw machine!).
88
Since the mechanism controlling the needle moves linearly, it keeps track of its position in a pair of coordinates `(x, y)`, with the origin at the center of the record.
99

1010
There is a further optical setup which keeps track of where the needle is and where the previous or next song begins.
1111
Since the record is rotating, it's easier to track the radial difference and the angular separation between the two points, `(Δr, Δθ)`, again with the origin at the center of the record.
1212

13-
Turndit needs to know how to find the new `(x, y)` coordinates for the needle to move to when a different track is selected.
13+
Turndit needs to know how to find the new `(x, y)` coordinates to which the needle will move when a different track is selected.
1414

15-
These operations can be done through trigonometric functions and/or rotation matrices, but they can be made simpler (and more fun, I assure you) with the use of complex numbers via rotations and radial displacements.
15+
These operations can be done through trigonometric functions and/or rotation matrices, but they can be made simpler (and more fun, I assure you!) with the use of complex numbers via rotations and radial displacements.
1616

1717
This ease results from Euler's elegant formula, `ℯ^(iθ) = cos(θ) + isin(θ) = x + iy`, where `i = √-1` is the imaginary unit.
1818

exercises/concept/tracking-turntable/.docs/introduction.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ julia> exp(1im * π) ≈ cis(π) ≈ cispi(1)
166166
true
167167
```
168168

169-
The approximate equality above is because the functions `cis` and `cispi` can give nicer numerical outputs, with `cispi` in particular when dealing with arguments that are arbitrary factors of π.
169+
The approximate equality above is because the functions `cis` and `cispi` can give nicer numerical outputs, with `cispi` in particular when dealing with arguments that are arbitrary factors of π (e.g. radians!).
170170

171171
```julia-repl
172172
julia> cis(π)
@@ -182,7 +182,7 @@ julia> exp(im*θ)
182182
julia> cis(θ)
183183
6.123233995736766e-17 + 1.0im
184184
185-
julia> cispi(θ / π) # θ/π == 1/2
185+
julia> cispi(θ / π) # θ/π == 1/2
186186
0.0 + 1.0im
187187
```
188188

0 commit comments

Comments
 (0)