Skip to content

Commit

Permalink
Add clarifications to the Extract magic numbers task
Browse files Browse the repository at this point in the history
  • Loading branch information
onewhl committed Nov 7, 2023
1 parent b0eafad commit 0391369
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
id: 205367361
id: 1583020778
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@

### Task

In this task, you need to identify magic numbers and create constant values for them.
To calculate the **energy of a photon**, we use a simple formula: multiply the Planck constant, which is a very small
number (`6.62607015 × 10^-34`), by the light's frequency (the number of waves that pass a point in one second). To find
the frequency of light, divide the speed of light (which is `299,792,458` meters per second) by the wave length of
the light. The greater the frequency, the higher the energy of the photon.

To calculate the **mass of a photon**, take the energy of the photon and divide it by the speed of
light squared. However, in practice, photons are considered to have zero mass.

In this task, you need to identify magic numbers in the code and create constant values for them.

### Hints

Expand Down

0 comments on commit 0391369

Please sign in to comment.