pyCGM_Single.pycgmKinetics.length

pyCGM_Single.pycgmKinetics.length(v)

Calculate length of a 3D vector.

Parameters
vlist

A 3D vector.

Returns
float

Returns the length of v.

Examples

>>> import numpy as np
>>> from .pycgmKinetics import length
>>> v = [1,2,3]
>>> np.around(length(v), 2)
3.74