Graphing piecewise functions?


[Prev][Next][Index][Thread]

Graphing piecewise functions?



Hi!
How do I graph

         x^2 for x<0
f(x)={
         sqrt(x) for x>=0

I know you would say y1=(x<0)x^2+(x>=0)sqrt(x) but that does not work
because sqrt(x) is undefined for negative x values.

I tried graphing y1=(x<0)x^2 and y2=(x>=0)sqrt(x) but it is not very handy
and it results in some grim line.

Suggestions?

Kasper Vibe Grevsen (remove "remove" when emailing)


Follow-Ups: