It came from the future to fit a continuous function to discrete data points. It's... THE INTERPOLATER.

Also automatically includes multiplying the first harmonic and rms factors back in to get the correct voltage.