
Go to the source code of this file.
Classes | |
| struct | complex |
Defines | |
| #define | c_add(c, a, b) |
| #define | c_sub(c, a, b) |
| #define | cs_mult(c, a, b) |
| #define | cc_mult(c, a, b) |
| #define | c_eq(a, b) ( (a)->r == (b)->r && (a)->i == (b)->i ) |
Functions | |
| void | c_div (complex *, complex *, complex *) |
| double | c_abs (complex *) |
| double | c_abs1 (complex *) |
| void | c_exp (complex *, complex *) |
| void | r_cnjg (complex *, complex *) |
| double | r_imag (complex *) |
Definition in file scomplex.h.
| #define c_add | ( | c, | |||
| a, | |||||
| b | ) |
Value:
{ (c)->r = (a)->r + (b)->r; \
(c)->i = (a)->i + (b)->i; }
Definition at line 31 of file scomplex.h.
| #define c_eq | ( | a, | |||
| b | ) | ( (a)->r == (b)->r && (a)->i == (b)->i ) |
Definition at line 52 of file scomplex.h.
| #define c_sub | ( | c, | |||
| a, | |||||
| b | ) |
Value:
{ (c)->r = (a)->r - (b)->r; \
(c)->i = (a)->i - (b)->i; }
Definition at line 35 of file scomplex.h.
| #define cc_mult | ( | c, | |||
| a, | |||||
| b | ) |
Value:
{ \
float cr, ci; \
cr = (a)->r * (b)->r - (a)->i * (b)->i; \
ci = (a)->i * (b)->r + (a)->r * (b)->i; \
(c)->r = cr; \
(c)->i = ci; \
}
Definition at line 43 of file scomplex.h.
| #define cs_mult | ( | c, | |||
| a, | |||||
| b | ) |
| double c_abs | ( | complex * | ) |
| double c_abs1 | ( | complex * | ) |
| double r_imag | ( | complex * | ) |
1.5.6