The function seems to output -1.0 for any input value less than or equal to 0 and output 1.0 for any input value greater than 0.

