Everywhere I look (Parker, JOS, Chowdhury) the first antiderviative of the signum function is given as
Code: Select all
x * signum(x) - 0.5 for x < -1 and x > 1
My rusty maths tell me it's just
Code: Select all
x * signum( x )
Am I onto something or am I missing it?
#---------------------
I've been missing that the -0.5 is there to make the antiderivative continuous because 0.5*x^2 is 0.5 at +/- 1