Exercise: Expressing a constant vector

9.2.11. Exercise: Expressing a constant vector#

Using Kinetics Toolkit’s conventions, create a NumPy array that corresponds to the following time-invariant vector:

\[ \vec{v} = (1, 2, 0) \]
Hide code cell content
import numpy as np

import kineticstoolkit.lab as ktk

v = np.array([[1.0, 2.0, 0.0, 0.0]])

# or

v = ktk.geometry.create_vector_series([[1, 2, 0]])

v
array([[1., 2., 0., 0.]])