Skip to content

Commit

Permalink
alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Massimo committed Jan 24, 2025
1 parent 2d57063 commit ed04e2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/source/exercises.rst
Original file line number Diff line number Diff line change
Expand Up @@ -720,8 +720,8 @@ as well as their weight (from which their charge can be computed).
# longitudinal momentum in MeV/c
import scipy.constants
electron_mass_MeV = scipy.constants.physical_constants["electron mass energy equivalent in MeV"][0]
px_bunch=track_part.getData()["px"]*electron_mass_MeV
electron_mass_MeV = scipy.constants.physical_constants["electron mass energy equivalent in MeV"][0]
px_bunch = track_part.getData()["px"]*electron_mass_MeV

**Hint 3:** The ``Ex`` and ``px`` will have very different scales, so you will need
to use two `y` axes with different scales to see something meaningful.
Expand Down

0 comments on commit ed04e2a

Please sign in to comment.