A lesser-known, step-like function approximation method. Note that the default assumes an incremental (positive) approximation and in order to approx the cosine you need to set this to False.