| |
Posté le 11 octobre 2022 - 09:19 |
Hello everybody could anyone tell me how to use Complex numbers in windev?
Mimmo |
| |
| |
| | | |
|
| | |
| |
Membre enregistré 91 messages |
|
Posté le 11 octobre 2022 - 18:54 |
You can use a structure and then have two parts to the structure .. the real part and the imaginary part
Mystruct is Structure realpart is real imagpart is real END
Num1 is Mystruct Num2 is Mystruct
Num1.realpart = 76.8 Num1.imagpart = 24.0
Num2.realpart = 65.9 Num2.imagpart = 11.23
myresult is mystruct = ComplexAdd(Num1, Num2)
PROCEDURE ComplexAdd (N1 is Mystruct , N2 is Mystruct) : Mystruct ComplexResult is Mystruct ComplexResult.realpart = N1.realpart + N2.realpart ComplexResult.imagpart = N1.imagpart + N2.imagpart RESULT ComplexResult
-- Ben Dell Riebens Computers Pty Ltd Southern Africa PcSoft Distributor www.windevsa.co.za PcSoft Sales, Support and TrainingMessage modifié, 11 octobre 2022 - 18:54 |
| |
| |
| | | |
|
| | |
| |
Posté le 12 octobre 2022 - 09:00 |
Isn't the procedure a bit ambiguous. Please let me know if there is another way around. |
| |
| |
| | | |
|
| | |
| |
Posté le 18 octobre 2022 - 09:36 |
Thank's But do You Know what works with a direct assignment?
fft si complex number E.g.fft = FFTSharp.Transform.FFT (real array)
FFTSharp.Transform.FFT is a .net assembly on the Fourrier transform
Thank you Mimmo |
| |
| |
| | | |
|
| | |