Update Spectral.h

Make sure the sqrt(-1) doesn't turn into NaN.