# dft function

Discrete Fourier transform of a list, with the positive exponent and scaled by 1/sqrt(n).

## How to write it

### dft(list)

**list**

The values. Takes a list.

## Examples

- $\displaystyle \operatorname{dft}(\left[ 1, 2, 3, 4 \right]) = \left[ 5, -1-i, -1, -1+i \right]$

  `dft([1, 2, 3, 4])`

  In the solver, `dft([1, 2, 3, 4])` gives `[5, -1 - i, -1, -1 + i]`.

  [Open in the solver](https://hilberon.com/?q=dft%28%5B1%2C%202%2C%203%2C%204%5D%29)

## Related functions

- [inverse_dft](https://hilberon.com/library/inverse_dft)

  Inverse discrete Fourier transform of a list.
- [fourier_transform](https://hilberon.com/library/fourier_transform)

  Fourier transform of an expression.
- [z_transform](https://hilberon.com/library/z_transform)

  Z transform of an expression.
- [laplace_transform](https://hilberon.com/library/laplace_transform)

  Laplace transform of an expression.
- [inverse_laplace_transform](https://hilberon.com/library/inverse_laplace_transform)

  Inverse Laplace transform of an expression.
- [inverse_z_transform](https://hilberon.com/library/inverse_z_transform)

  The sequence whose Z transform is an expression.

---
Source: https://hilberon.com/library/dft
