c4dynamics.states.state.state.X0#
- property state.X0#
Returns the initial conditions of the state vector.
The initial conditions are determined at the stage of constructing the state object. Modifying the initial conditions is possible by direct assignment of the state variable with a ‘0’ suffix. For a state variable \(s.x\), its initial condition is modifyied by:
s.x0 = x0
, wherex0
is an arbitrary parameter.- Returns:
out (numpy.array) – An array representing the initial values of the state variables.
Examples
>>> s = c4d.state(x1 = 0, x2 = -1) >>> s.X += [0, 1] >>> s.X0 [0 -1]
>>> s = c4d.state(x1 = 1, x2 = 1) >>> s.X0 [1 1] >>> s.x10 = s.x20 = 0 >>> s.X0 [0 0]