creal(z2),cimag(z2),carg(z2));doublecomplexz3=-1.0+0.0*I;printf("phaseangleof%.1f%+.1fiis%f\n",creal(z3
:complex<double>z2(0,1);std::cout<<"phaseangleof"<<z2<<"is"<<std::arg(z2)<<'\n';std::complex<double>z3
<"(theothersideofthecut)="<<std::acosh(z2)<<'\n';//inupperhalf-plane,acosh=iacosstd::complex<double><em>z3</em>
z2<<"(theothersideofthecut)="<<std::asinh(z2)<<'\n';//foranyz,asinh(z)=asin(iz)/istd::complex<double><em>z3</em>
<<"(theothersideofthecut)="<<std::atanh(z2)<<'\n';//foranyz,atanh(z)=atanh(iz)/istd::complex<double><em>z3</em>
*std::log10(z2)<<'\n';std::complex<double>z3(-100,0);//r=100,#=pistd::cout<<"log10"<<z3<<"="<<std::log10
z2(-0.0,2);std::cout<<"atan"<<z2<<"(theothersideofthecut)="<<std::atan(z2)<<'\n';std::complex<double><em>z3</em>
*std::log(z2)<<'\n';std::complex<double>z3(-1,0);//r=1,θ=pistd::cout<<"log"<<z3<<"="<<std::log(<em>z3</em>)<<'
"<<std::acos(z2)<<'\n';//foranyz,acos(z)=pi-acos(-z)constdoublepi=std::acos(-1);std::complex<double>z3
complex<double>z2(-1,0);//squarerootof-1std::cout<<"-1^0.5="<<std::pow(z2,0.5)<<'\n';std::complex<double><em>z3</em>
(z2));doublecomplexz3=cpow(conj(-1),0.5);//othersideofthecutprintf("(-1-0i)^0.5=%.1f%+.1fi\n",creal(z3
acos(-1);doublecomplexz3=csin(cacos(conj(-2))-pi/2);printf("csin(cacos(-2-0i)-pi/2)=%f%+fi\n",creal(z3
doublecomplexz3=2*catan(2*I*DBL_MAX);//orCMPLX(0,INFINITY)printf("2*catan(+0+i*Inf)=%f%+fi\n",creal(z3