import graph3;
size(200);
currentprojection=orthographic(-4,-10,5);
real f(pair z){return(sqrt(z).x);}
draw(surface(f,(-2,-2),(2,2),10), surfacepen=material(diffusepen=blue+opacity(0.7), emissivepen=0.2*white),meshpen=black+0.4bp,nolight);
xaxis3(Label("$x$",X),red,Arrow3);
yaxis3(Label("$y$",Y),red,Arrow3);
zaxis3(Label("$\mathrm{Re}(\sqrt{x+yi})$",Z),red,Arrow3);
HTML format
| import graph3;
size(200);
currentprojection=orthographic(-1,-10,5);
real f(pair z){return(sqrt(z).y);}
draw(surface(f,(0,-2),(2,2),10), surfacepen=material(diffusepen=blue+opacity(0.7), emissivepen=0.2*white),meshpen=black+0.4bp,nolight);
draw(surface(f,(-2,0.01),(0,2),5), surfacepen=material(diffusepen=blue+opacity(0.7), emissivepen=0.2*white),meshpen=black+0.4bp,nolight);
draw(surface(f,(-2,-2),(0,-0.01),5), surfacepen=material(diffusepen=blue+opacity(0.7), emissivepen=0.2*white),meshpen=black+0.4bp,nolight);
xaxis3(Label("$x$",X),red,Arrow3);
yaxis3(Label("$y$",Y),red,Arrow3);
zaxis3(Label("$\mathrm{Im}(\sqrt{x+yi})$",Z),red,Arrow3);
HTML format |