Julia code to approximate continuous functions using Chebyshev polynomials