Differentiate reciprocal trigonometric functions (#526)