Contact

FOURIER Function (Gnumeric)

Statistical Intermediate Gnumeric

Transform real sequences in Gnumeric with FOURIER, complex or split output, power-of-two padding and normalization in both directions.

Verification status: Gnumeric 1.12.57 ssconvert: specified FOURIER fixtures and separately captured worked-example GUI. Gnumeric 1.12.62 source inspected separately. How formula examples are checked

FOURIER computes a discrete Fourier transform or its opposite-sign transform for a real-valued sequence. It returns an array, usually containing complex-number strings. Gnumeric’s normalization and input handling differ from assumptions common in other FFT tools, so verify them before comparing amplitudes or attempting an inverse reconstruction.

Syntax and options

=FOURIER(Sequence[,Inverse[,Separate]])

Sequence is required and must be a single row or a single column. The input values used by the examined implementation are real numbers. Inverse defaults to FALSE; TRUE changes the sign of the transform exponent. Separate defaults to FALSE; TRUE returns two numeric columns, real parts first and imaginary parts second. When requesting separate columns, supply the preceding argument explicitly, for example FALSE.

If Separate is FALSE, the result is one column of complex-number strings. If TRUE, it is two numeric columns. A row-vector input still produces column-oriented output. After ignoring blanks, text and logical values, the retained implementation pads the usable numeric sequence with zeros to the next power-of-two length N. Select N rows and the appropriate number of output columns, type the formula and confirm with Ctrl+Shift+Enter in Gnumeric.

Important normalization

The inspected FFT routine divides by 2 at every recursion stage for both directions. Thus the forward result is the usual negative-exponent DFT divided by N, and the opposite-sign result is also divided by N. The inverse flag alone does not give an unscaled reconstruction when composed with this already normalized forward transform.

The input collector also ignores complex strings rather than treating them as complex input values. Consequently, do not feed the one-column complex-string output directly back into FOURIER and assume it performs a conventional complex round-trip. Splitting output into real and imaginary columns does not change the fact that a two-column input is invalid for this function.

Worked example: an impulse

Enter 1, 0, 0, 0 in A1:A4. Select D1:E4 and array-enter =FOURIER(A1:A4,FALSE,TRUE). Every output row should contain 0.25 in the real column and 0 in the imaginary column.

Independently, each unnormalized DFT coefficient of this four-sample impulse is 1; Gnumeric’s 1/N normalization gives 1/4. The first output row is the zero-frequency coefficient, and subsequent rows correspond to frequency indices k = 1, 2, 3. If samples are spaced by Δt, the associated bin spacing is 1/(N×Δt); the latter bins represent the negative-frequency side under the standard interpretation.

Advanced example: phase and zero padding

For a separate sequence 0, 1, 0, 0 in A1:A4, the expected separate-column forward result is:

Output row Real Imaginary
1 0.25 0
2 0 -0.25
3 -0.25 0
4 0 0.25

With Inverse TRUE, the imaginary signs reverse, while magnitudes remain 0.25. Tiny residual values around zero are normal floating-point effects.

If G1:G3 contains 1, 2, 3, array-enter =FOURIER(G1:G3,FALSE,TRUE) in H1:I4. The sequence is padded to [1,2,3,0]. The independently expected rows are [1.5,0], [-0.5,-0.5], [0.5,0], [-0.5,0.5]. Padding changes the sampled frequency grid; it does not create new measured information.

Errors and troubleshooting

  • A two-dimensional input with more than one row and column returns #VALUE!. Supply a single series.
  • Do not expect an all-text or blank-containing input to be rejected consistently. In a bounded native test with A1 containing text and A2 blank, the first real and imaginary output components were both 0. That scalar check did not establish the full output dimensions. Complex text is not interpreted as complex sample data.
  • Blank or text samples are removed, not automatically converted to zero. Removing a time sample changes spacing and phase; use an explicit numeric zero only when zero is the intended measurement.
  • Input errors propagate. Correct them before performing spectral analysis.
  • Compare normalization and sign conventions before comparing another program’s FFT output. Multiplying Gnumeric’s forward coefficients by N gives the conventional unnormalized forward DFT for the tested real inputs.
  • Unequally spaced observations need a justified resampling method; this function does not infer timestamps or repair irregular sampling.

Version and evidence

Official NEWS records FOURIER as new in Gnumeric 1.9.9; the Separate argument was added in 1.10.12, so the original introduction alone does not certify this three-argument syntax in that release. The inspected pinned source is Gnumeric 1.12.62. Gnumeric 1.12.57 ssconvert recalculated the impulse example on 17 October 2026 in C.UTF-8. A separate worked-example GUI capture is documented below; no retirement date is inferred.

AVERAGE helps inspect the zero-frequency mean, and COUNT helps audit the number of numeric samples before padding.

Official sources

Additional native 1.12.57 cases on the same date confirmed the opposite forward/inverse imaginary signs and the three-value zero-padding example. Maximum displayed residual from mathematical zero in the phase example was about 1.54e-17. Both transforms retain the 1/N normalization.

Native application screenshot

Gnumeric FOURIER worked example with synthetic inputs, formula bar and calculated results

Gnumeric 1.12.57, captured 17 October 2026. Impulse A1:A4; real/imag transform D1:E4. The selected cell D1 shows the formula in the formula bar. Display precision is shorter than the independent reference values; integer cells may show a trailing decimal point. GUI locale was not independently recorded.