My textbook mentions that we can get the weights through the Lagrange function. Could you possibly explain how that's possible? For example, if n=0, the weight is a0=2. When n =1, a0 = a1 = 1. Everything is on the same interval, [-1,1].
I'm not the uploader, but it guarantees a higher degree of accuracy for less. The Degree of precision is 2n-1, so in the example in the video it's 2(2)-1 or 3 (since we were going up to t^2). So it's guaranteed to be accurate for up to the 3rd series in a taylor polynomial expansion.