Sound Design Toolkit 075 Physically informed sound synthesis for everyday sounds

- Main Page
- Modules
- Data Structures
- Files

- File List

SDTComplex.h
1
7 #ifndef SDT_COMPLEX_H
8 #define SDT_COMPLEX_H
9
11 typedef struct SDTComplex {
12 double r, i;
13 } SDTComplex;
14
19 extern SDTComplex SDTComplex_cart(double real, double imag);
20
24 extern SDTComplex SDTComplex_exp(double phase);
25
29 extern SDTComplex SDTComplex_conj(SDTComplex a);
30
34 extern double SDTComplex_abs(SDTComplex a);
35
40 extern SDTComplex SDTComplex_add(SDTComplex a, SDTComplex b);
41
46 extern SDTComplex SDTComplex_sub(SDTComplex a, SDTComplex b);
47
52 extern SDTComplex SDTComplex_mult(SDTComplex a, SDTComplex b);
53
58 extern SDTComplex SDTComplex_div(SDTComplex a, SDTComplex b);
59
64 extern SDTComplex SDTComplex_addReal(SDTComplex a, double b);
65
70 extern SDTComplex SDTComplex_subReal(SDTComplex a, double b);
71
76 extern SDTComplex SDTComplex_realSub(double a, SDTComplex b);
77
82 extern SDTComplex SDTComplex_multReal(SDTComplex a, double b);
83
88 extern SDTComplex SDTComplex_divReal(SDTComplex a, double b);
89
94 extern SDTComplex SDTComplex_realDiv(double a, SDTComplex b);
95
96 #endif
97
SDTComplex_realSub
SDTComplex SDTComplex_realSub(double a, SDTComplex b)
Returns the difference of a real number and a complex number.
SDTComplex_exp
SDTComplex SDTComplex_exp(double phase)
Returns a complex exponential with base e and given phase.
SDTComplex_add
SDTComplex SDTComplex_add(SDTComplex a, SDTComplex b)
Returns the sum of two complex numbers.
SDTComplex
struct SDTComplex SDTComplex
Data structure containing the real and imaginary part of a complex number.
SDTComplex_realDiv
SDTComplex SDTComplex_realDiv(double a, SDTComplex b)
Returns the division between a real number and a complex number.
SDTComplex
Data structure containing the real and imaginary part of a complex number.
Definition: SDTComplex.h:11
SDTComplex_multReal
SDTComplex SDTComplex_multReal(SDTComplex a, double b)
Returns the multiplication between a complex number and a real number.
SDTComplex_addReal
SDTComplex SDTComplex_addReal(SDTComplex a, double b)
Returns the sum of a complex number and a real number.
SDTComplex_subReal
SDTComplex SDTComplex_subReal(SDTComplex a, double b)
Returns the difference of a complex number and a real number.
SDTComplex_divReal
SDTComplex SDTComplex_divReal(SDTComplex a, double b)
Returns the division between a complex number and a real number.
SDTComplex_cart
SDTComplex SDTComplex_cart(double real, double imag)
Returns a complex number with the given real and imaginary parts.
SDTComplex_div
SDTComplex SDTComplex_div(SDTComplex a, SDTComplex b)
Returns the division between two complex numbers.
SDTComplex_sub
SDTComplex SDTComplex_sub(SDTComplex a, SDTComplex b)
Returns the difference of two complex numbers.
SDTComplex_abs
double SDTComplex_abs(SDTComplex a)
Returns the absolute value (magnitude) of a complex number.
SDTComplex_conj
SDTComplex SDTComplex_conj(SDTComplex a)
Returns the complex conjugate of a complex number.
SDTComplex_mult
SDTComplex SDTComplex_mult(SDTComplex a, SDTComplex b)
Returns the multiplication between two complex numbers.