blob: c56281093ccca969ebd57efbd6aed0cbb557d1ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef COMPLEX_H
#define COMPLEX_H
struct complex
{
float real;
float img;
};
// Print
void print_complex(struct complex a);
// Operations
struct complex neg_complex(struct complex a);
struct complex add_complex(struct complex a, struct complex b);
struct complex sub_complex(struct complex a, struct complex b);
struct complex mul_complex(struct complex a, struct complex b);
struct complex div_complex(struct complex a, struct complex b);
#endif /* !COMPLEX_H */
|