Fourier Transform Applied to Alternating Temperature Calculation