Quote:
Originally Posted by yae9911
The new task is already available on-line at this link:
|
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?
Also, not completely clear whether the literals in the expression can be integers or rationals/reals (probably no difference between the latter two, unless you have some expression that achieves exactly 0.0001 with optimal non-rational constants...)