calculate the absolute value of x-1
Result:   abs(x -1)