0.5*((10- x)*Heaviside(-10+ x) + (10+ x)*Heaviside(10 + x))/10