The function is only defined for negative inputs. It appears to work correctly for all negative inputs I tested, but I did not test any positive inputs.

