diff options
Diffstat (limited to 'Complex/Complex.swift')
-rw-r--r-- | Complex/Complex.swift | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Complex/Complex.swift b/Complex/Complex.swift new file mode 100644 index 0000000..e3efb64 --- /dev/null +++ b/Complex/Complex.swift @@ -0,0 +1,18 @@ +// +// Complex.swift +// PrySDR +// +// Created by Jacky Jack on 22/10/2024. +// + +/// Complex number +class Complex { + var i: Float + var q: Float + + /// Create complex number + init(i: Float, q: Float) { + self.i = i + self.q = q + } +} |