Question: plot max(x^2,sqrt(|x|)) together

I need to plot the maximum of x^2 and sqrt(|x|) together on one graph. I've currently defined a procedure f that uses an if-else construct for the given function. However, when I use plot(f,-3..3); I get the following error:

"Warning, unable to evaluate the function to numeric values in the region; see the plotting command's help page to ensure the calling sequence is correct"

How do I resolve this error?

 

Please Wait...