Problem with the UpperSum command
I noticed today that, when you define a function with different parts (e.g. f(x)=6-x if x<1 and else f(x)=7-2x), the UpperSum (and LowerSum) command does not work. It uses only the first expression (6-x), even when x becomes greater than 1.
[See discussion and example in French Forum:]