2024-08-26 13:59:54 +02:00

48 lines
1.1 KiB
Markdown

---
layout: default
---
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
<h1 id="function-fft">Function fft <a href="#function-fft" title="Permalink">#</a></h1>
Calculate N-dimensional Fourier transform
<h2 id="syntax">Syntax <a href="#syntax" title="Permalink">#</a></h2>
```js
math.fft(arr)
```
<h3 id="parameters">Parameters <a href="#parameters" title="Permalink">#</a></h3>
Parameter | Type | Description
--------- | ---- | -----------
`arr` | Array &#124; Matrix | An array or matrix
<h3 id="returns">Returns <a href="#returns" title="Permalink">#</a></h3>
Type | Description
---- | -----------
Array &#124; Matrix | N-dimensional Fourier transformation of the array
<h3 id="throws">Throws <a href="#throws" title="Permalink">#</a></h3>
Type | Description
---- | -----------
<h2 id="examples">Examples <a href="#examples" title="Permalink">#</a></h2>
```js
math.fft([[1, 0], [1, 0]]) // returns [[{re:2, im:0}, {re:2, im:0}], [{re:0, im:0}, {re:0, im:0}]]
```
<h2 id="see-also">See also <a href="#see-also" title="Permalink">#</a></h2>
[ifft](ifft.html)