pub fn tool_force_on_rates<M: Machine + ?Sized>(
machine: &M,
s: &[f64],
force: &[f64],
rates: Range<usize>,
) -> Option<Vec<f64>>Expand description
The generalised force of a force on the contact coordinates (Machine::set_tool_force, by default the tool’s) on each of the
state’s rates rates: its virtual power per unit of each rate, F . d v / d s_j, with their rates v as
contact_state gives them, linear in the state’s rates (a unit step on each is exact). Its power on the rates is
then F . v, what the simulation books as the obstacles’ work. None where the force is zero.