Quantity of motion of an arbitrary number of inputs