Algorithm 13 - Approximate function expansion into a Chebyshev series - Cylkowski, Z. (1971)