Quote:
Originally Posted by uau
Did I misunderstand something about the challenge/example? I thought the error would be calculated as half (due to interval length 2) of:
Code:
sage: integral( (abs(x) - (x+1)/2)^2, (x, -1, 1))
1/3
But 1/6 does not equal 0.125?
|
I was struggling with the same thing. I'm hoping it is a typo in the provided example.