start code for finding w --> forcetorque space