Text this: Approximation of the pth Roots of a Matrix by Using Trapezoid Rule