add Pi(n,phi,m): integral of the 3rd kind