Inverse fast Fourier transform
function ifft import Modelica.ComplexMath.*; input Complex[:] x = {Complex(re = 36, im = 0), Complex(re = -4, im = 9.65685424949238), Complex(re = -4, im = 4), Complex(re = -4, im = 1.65685424949238), Complex(re = -4, im = 0), Complex(re = -4, im = -1.65685424949238), Complex(re = -4, im = -4), Complex(re = -4, im = -9.65685424949238)} "The vector to be inverse transformed"; input Integer n = 8 "Number of data points for calculation"; output Complex[size(x, 1)] y "The result"; end ifft;