#include #include #include #include int main(void) { complex z = -1; #ifdef TGMATH #include #endif complex racine_de_z = sqrt(z); double a = creal(racine_de_z); double b = cimag(racine_de_z); printf("Racine de -1\n"); printf(" - partie réelle : %lf\n", a); printf(" - partie imaginaire : %lf\n", b); return EXIT_SUCCESS; }