// Structure type to handle complex numbers
typedef struct
{
  float re;    // Real part
  float im;    // Imaginary part
} complex;