mechanization matrix from euler