Skip to content

Commit 90d25a0

Browse files
authored
Update hints.md
A little more detail and a link to a method
1 parent bd193bc commit 90d25a0

File tree

1 file changed

+6
-2
lines changed
  • exercises/concept/strange-stopwatch/.docs

1 file changed

+6
-2
lines changed

exercises/concept/strange-stopwatch/.docs/hints.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Hints
22

3+
Using complex numbers for rotations in 2D can leave things much cleaner and numerically more precise.
4+
35
## 1. Define a 2D vector rotation function
46

57
- [Euler's formula][euler] is your friend here.
@@ -14,13 +16,14 @@
1416

1517
## 3. Define a function to tell the time on the stopwatch
1618

17-
- Use your `timearg` function.
19+
- This is a good opportunity to use your `timearg` function.
1820
- There is an inbuilt method [rad2deg][rad2deg] to convert from radians to degrees.
1921
- Minutes are the [`abs`][abs] value of the vector.
2022

2123
## 4. Define a function to set a timer
2224

23-
- Consider using the [polar form][euler] of a complex number.
25+
- Consider using the [polar form][euler] of a complex number (e.g. `m*ℯ^(iθ)`).
26+
- There is an inbuilt method [deg2rad][deg2rad] to convert from degrees to radians.
2427
- A rotation may be needed to redefine the zero point.
2528

2629
[euler]: https://docs.julialang.org/en/v1/base/math/#Base.cis
@@ -30,3 +33,4 @@
3033
[angle]: https://docs.julialang.org/en/v1/base/math/#Base.angle
3134
[abs]: https://docs.julialang.org/en/v1/base/math/#Base.abs
3235
[rad2deg]: https://docs.julialang.org/en/v1/base/math/#Base.Math.rad2deg
36+
[deg2rad]: https://docs.julialang.org/en/v1/base/math/#Base.Math.deg2rad

0 commit comments

Comments
 (0)