Since the function approaches from the left and from the right, the limit does not exist. Evaluate limit as x approaches 0 of (cos(x))/x