Partial Differentiation of Real Ternary Functions