The domain of the function appears to be for input values x ≥ 0. For negative inputs, the function returns "nan".

