Added cos and sin derivatives.