Thread: December 2019
View Single Post
Old 2019-12-04, 20:32   #2
uau
 
Jan 2017

3×29 Posts
Default

Quote:
Originally Posted by yae9911 View Post
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...)
uau is offline   Reply With Quote