piecewise[{{e^x-1,x<0},{x^2/2--x,x>=0}}]