Weierstrass P function