Relations Question 31

Question: Let $ g( x )=1+x-[ x ] $ and $ f( x )= \begin{cases} -1, & x<0 \\ 0, & x=0, \\ 1, & x>0 \\ \end{cases} . $ then for all x, $ f[g(x)] $ is equal to

Solution:

Answer: 1