Fixed a->p transform which fixed bug in differentiation and integration