Exercise: Expressing a series of points

9.1.5.7. Exercise: Expressing a series of points#

Using Kinetics Toolkit’s conventions, create a NumPy array that corresponds to the following trajectory:

\[\begin{split} \vec{p}(t_0) = (3, 4, 5) \\ \vec{p}(t_1) = (4, 5, 5) \\ \vec{p}(t_2) = (5, 6, 5) \\ \vec{p}(t_3) = (6, 7, 5) \\ \vec{p}(t_4) = (7, 8, 5) \\ \end{split}\]
Hide code cell content
import numpy as np

p = np.array(
    [
        [3.0, 4.0, 5.0, 1.0],
        [4.0, 5.0, 5.0, 1.0],
        [5.0, 6.0, 5.0, 1.0],
        [6.0, 7.0, 5.0, 1.0],
        [7.0, 8.0, 5.0, 1.0],
    ]
)

p
array([[3., 4., 5., 1.],
       [4., 5., 5., 1.],
       [5., 6., 5., 1.],
       [6., 7., 5., 1.],
       [7., 8., 5., 1.]])