Code : The code is in python, since C was giving TLE (prob due to formatting issues).
I have attached the outputs here in form of tuple $(x, f(x))$. The bold values are the ones where f(x) was actually giving x as output.
(1.726, 1.7320614136732329)
(1.728, 1.7320555555555557)
(1.73, 1.73)
(1.732, 1.732)
(1.734, 1.734)
(1.736, 1.7320552995391705)
(1.738, 1.7320609896432682)
(1.74, 1.7320689655172414)
(-1.74, -1.7320689655172414)
(-1.738, -1.7320609896432682)
(-1.736, -1.7320552995391705)
(-1.734, -1.734)
(-1.732, -1.732)
(-1.73, -1.73)
(-1.728, -1.7320555555555557)
We can notice both $1.73$ and $-1.73$ gives correct answer. While $1.74$ or $-1.74$ does not give desired output.
@gatecse Sir, @ankitgupta.1729 Sir.