Updating math.hpp to chebyshev function