deriv function

Partial differentiation of spray objects