Integration using Euler's formula