add small theta version of c++ rot_mat_derivatives()