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