>The reason why the Apollo team chose these terms instead of the Taylor ones was because these were actually optimized for minimum error in the interval −π/2<y<π/2
How would these coefficients be derived in the first place?
How would these coefficients be derived in the first place?
If you want to play with this sort of thing and you have access to a copy of Matlab, check out Chebfun, https://www.chebfun.org/examples/approx/
+ 1/2 * sin(x * pi / 2)
+ 0.785313 * x - 0.321615 x^3 + 0.0363551 x^5
Now you just take the dot product of these new basis vectors with your target function.