Slide 94
Slide 94 text
poly, err =
chebyfit ( sin, [0, pi/4], 10, error=True)
from mpmath import chebyfit, sin, pi
poly:
[2.53705546510064e-6, 4.83882390985545e-7,
-0.000198913241162381, 2.96736201694264e-7,
0.00833322702020108, 2.28887435232138e-8,
-0.166666669474202, 1.73888384312788e-10,
0.999999999995841, 1.63478544118895e-14]