As an alternative, you may use just console output ('graph of stars'
*
) and avoid using arrays if you rotate the axys (that is speed on
Y
, mass on
X
).
Here is an output example (relative mass,
m/m0
, on
X
, speed on
Y
, the scale on
X
is logarithmic).
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*