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

3×29 Posts

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:

sage: integral( (abs(x) - (x+1)/2)^2, (x, -1, 1))
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