rhs()

rhs()#

ContinuousModel.rhs(t, state, input_func=None)[source]#

Evaluate the right-hand side of the model by applying each operator and summing the results.

This is the right-hand side of the model, i.e., the function \(\fhat(\qhat(t), \u(t))\) where the model is given by \(\ddt \qhat(t) = \fhat(\qhat(t), \u(t))\).

Parameters:
tfloat

Time \(t\), a scalar.

state(r,) ndarray

State vector \(\qhat(t)\) corresponding to time t.

input_funccallable(float) -> (m,), or None

Input function that maps time t to the input vector \(\u(t)\).

Returns:
dqdt(r,) ndarray

Evaluation of the right-hand side of the model.