DFT Calculator
Forward DFT X[k]=Σ x[n] e^{−2πi kn/N}, N≤64, unnormalized. Same engine as Discrete Fourier Transform. Radix-2 FFT is on /fft. Not inverse, not Laplace. Runs locally.
Trust summary Engine tested · Specification checked · 17/17 tests · Production surface contract 3/3 · v1.2.0
- Input interpretation
- Enter values to calculate.
- Result
- —
- Model
- Unnormalized forward DFT of a length-N sequence, N≤64.
- Scope
- Mode locked to dft
- Verification
- Engine tested · 17/17 tests · Production surface contract 3/3 · Specification checked · v1.2.0
- Named expert review
- Optional · Not performed
- Specification basis
- ISO 80000-2:2019 Quantities and units — Mathematics
- Evidence
- 6 golden · 3 boundary · 8 property · Production surface contract 3/3 · Artifact integrity PASS
- Production
- Embedded snapshot: unpublished · Build schema 1.2.0 ready · Semantic contract ✓ · Attestation report not published on origin · Live production status STALE (2 capabilities; 162 remain CURRENT) @ 2026-09-20T09:01:12.147Z
- Semantic contract
- PASS
Formulas
Core equations used by this calculator.
How to use
Enter samples
Real list, optional im of the same length. N must be 1–64. Default 1,0,0,0.
Read X[k]
The impulse has DFT all ones. DC 1,1,1,1 has X[0]=4.
Example calculations
Common configurations with formula and result.
Impulse
samples = 1,0,0,0
DC
samples = 1,1,1,1
DFT calculator specification
Version 1.2.0 · Engine tested
- Engine tested 17/17 tests · Production surface contract 3/3
- Named expert review Not performed
- Calculation version 1.2.0
- Definition
- The unnormalized forward DFT is X[k]=Σ_n x[n] e^{−2πi kn/N}. This page is mode=dft on math.transform.dft. Direct O(N²), N≤64. Inverse DFT lives on /inverse-dft. Radix-2 FFT lives on /fft. Not Laplace. Not CAS.
- What it calculates
- Unnormalized forward DFT of a length-N sequence, N≤64.
- Inputs
- samples
- im?
- Outputs
- n
- re
- im
- mag
- Formula
X[k] = Σ_n x[n] e^{−2πi kn/N}- Assumptions
- Mode locked to dft
- Direct O(N²), N≤64, Numpy backward
- Not this page's FFT — radix-2 is on /fft
- Not Laplace, not CAS
- Units
- dimensionless
- Boundary conditions
- empty samples → INVALID_INPUT
- N > 64 → INVALID_INPUT
- unknown mode → INVALID_MODE
- Example
- samples=1,0,0,0 → X=[1,1,1,1]
- Validation cases
2 published on this page · 17/17 tests · Production surface contract 3/3 · View evidence
- samples=1,0,0,0 → re=[1,1,1,1]
- mode=cas → INVALID_MODE
- Specification basis
- ISO 80000-2:2019 Quantities and units — Mathematics
- Calculation version
- 1.2.0
Related tools
Other calculators in this family: Bessel I Calculator, Bessel J Calculator, Bessel K Calculator, Bessel Y Calculator, Beta Function Calculator, Brent Method Calculator, Definite Integral Calculator, Discrete Fourier Transform Calculator . Explore all Numerical Calculus.
Frequently asked questions
Key distinctions behind the calculation.
Is this a second DFT engine?
No. It is mode=dft on math.transform.dft, the same engine as /calc/math/discrete-fourier-transform.
Is this an FFT?
No. Direct O(N²) DFT, N≤64. Radix-2 FFT is on /fft, the same engine.
Where does this run?
Locally in the browser by default. REST and MCP call the same discrete-fourier-transform engine.