partial derivative of exp(-((xcos(theta) + ysin(theta))^2 + z^2 * (-xsin(theta) + ycos(theta))^2)/(2 \sigma^2))cos (2\pi (xcos(theta) + ysin(theta))/ \lambda + k) with respect to theta