#!/usr/bin/env /friends/bin/cscript #include #include #include int main() { double complex ipi = I*M_PI; double complex z = cexp(ipi); printf("%.17g+%.17gi\n", creal(z), cimag(z)); }