Dual-Number Methods in Kinematics Statics and Dynamics