#7, #6 Extraction of phase and magnitude