It is known that the function y = f (x) is an odd function on R, and when x is greater than 0, f (x) = 1. Try to find the expression of y = f (x)

It is known that the function y = f (x) is an odd function on R, and when x is greater than 0, f (x) = 1. Try to find the expression of y = f (x)

1 x>0
f(x)= 0 x=0
-When 1 x0, f (x) = 1
2、x