c4dynamics.states.state.state.norm

Contents

c4dynamics.states.state.state.norm#

property state.norm#

Returns the Euclidean norm of the state vector.

Returns:

out (float) – The computed norm of the state vector. The return type specifically is a numpy.float64.

Examples

>>> s = c4d.state(x1 = 1, x2 = -1)
>>> s.norm  
1.414...