Show fifth degree terms

Show third degree terms

Show seventh degree terms

f(x) = sin(x)
P1(x) = x
a = 1 (slider from 1 to 20, step 1)
P3(x) = x - x^(3.0) / a
b = 80 (slider from 80 to 150, step 5)
P5(x) = P3(x) + x^(5.0) / b
diff1(x) = f(x) - P1(x)
diff3(x) = f(x) - P3(x)
diff5(x) = f(x) - P5(x)
c = 3100 (slider from 3000 to 8000, step 100)
P7(x) = P5(x) - x^(7.0) / c
xcoord = 0 (slider from 0 to 2.5, step 0.1)
P: (xcoord, diff1(xcoord))
Q: (xcoord, diff3(xcoord))
R: (xcoord, diff5(xcoord))
A1 = 0
B1 = 0
A2 = 0.1
B2 = -1.665833531718508E-4
A3 = 0.2
B3 = -0.0013306692049387947
C1 = 0
D1 = 0
C2 = 0.1
D2 = 8.331349481138783E-8
C3 = 0.2
D3 = 2.6641283945305627E-6
E1 = 0
F1 = 0
E2 = 0.1
F2 = -1.983851971587569E-11
E3 = 0.2
F3 = -2.5382721480227133E-9
d = false
g = false
diff7(x) = f(x) - P7(x)
h = false