# How do I graph this in python? [closed]

$$y=\cases{-\sqrt{|x|}, \quad x\le0\\\sqrt{x}, \quad x>0}$$

I've tried graphing this in python, but can't seem to figure it out. Does anyone know how to do this by chance?

• How have you tried to plot it? Are you stuck with the syntax, or how to mathematically express this? – ScientificPythonNovice Jan 25 at 4:55
• – VoB Jan 25 at 8:41

np.sign(x) * np.sqrt(np.abs(x))