mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
1.1 KiB
1.1 KiB
| layout |
|---|
| default |
Function fft #
Calculate N-dimensional Fourier transform
Syntax #
math.fft(arr)
Parameters #
| Parameter | Type | Description |
|---|---|---|
arr |
Array | Matrix | An array or matrix |
Returns #
| Type | Description |
|---|---|
| Array | Matrix | N-dimensional Fourier transformation of the array |
Throws #
| Type | Description |
|---|
Examples #
math.fft([[1, 0], [1, 0]]) // returns [[{re:2, im:0}, {re:2, im:0}], [{re:0, im:0}, {re:0, im:0}]]