cplx.h
#include
struct Complex
{
float r; /*real part*/
float i; /*imag part*/
};
struct Complex C_conj (struct Complex a);
struct Complex C_add (struct Complex a, struct Complex b);
struct Complex C_sub (struct Complex a, struct Complex b);
struct Complex C_mul (struct Complex a, struct Complex b);
struct Complex C_div (struct Complex a, struct Complex b);
struct Complex C_para (struct Complex a, struct Complex b);
struct Complex C_conj (struct Complex a);
struct Complex C_inv (struct Complex a);
float C_mag (struct Complex a);
float C_ang (struct Complex a);