In the first section of this work, we define the general problem, in the second section we discuss the general mathematical treatment as presented by Thomas Wayne. In the third section, we present a practical example, and finally in the last two sections we discuss the MATLAB and Python implementations, usage, and performance.