Only computes twiddle factor function when needed.