question: private void powerPhaseIFFT ( double [ ] pow , double [ ] ph ) { toMagnitude ( pow ) ; for ( int i = 0 ; i < pow . length ; i ++ ) { double re = pow [ i ] * Math . cos ( ph [ i ] ) ; ph [ i ] = pow [ i ] * Math . sin ( ph [ i ] ) ; pow [ i ] = re ; } fft ( pow , ph , FFT_REVERSE ) ; }
target:  Inline computation of the inverse FFT given spectral input data in polar coordinates (power and phase). Both arrays must be the same length, which is a power of 2.