added a shorthand P[index][function] for partial derivative