## Monday, 14 November 2022

### DSP Equations In Latex

I was recently documenting some DSP equations in Latex and couldn't find any suitable examples so I've put them together and thought I'd share.

## The Fourier Transform

\large \mathscr{F} \normalsize (x(t))=\int_{-\infty}^{\infty}x(t)e^{-j \omega t}dt

### Rendering

$$\large \mathscr{F} \normalsize (x(t))=\int_{-\infty}^{\infty}x(t)e^{-j \omega t}dt$$

## The Discrete Time Fourier Transform

X(k) = \sum_{n=0}^{N-1}x(n).e^{-j 2 \pi nk/N},\; for\; 0 \le k \le N-1

### Rendering

$$X(k) = \sum_{n=0}^{N-1}x(n).e^{-j 2 \pi nk/N},\; for\; 0 \le k \le N-1$$

## FIR Filter

y(n) = \sum_{n=0}^{N-1}h(k).x(n-k)

### Rendering

$$y(n) = \sum_{n=0}^{N-1}h(k).x(n-k)$$

## IIR Filter

y(n) = \sum_{k=0}^{N}a_{k}.y(n-k) + \sum_{r=0}^{M}b_{r}.x(n-r)

### Rendering

$$y(n) = \sum_{k=0}^{N}a_{k}.y(n-k) + \sum_{r=0}^{M}b_{r}.x(n-r)$$

## Roots Of Quadratic Equation $ax^{2} + bx + c = 0$

x=\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

### Rendering

$$x=\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$

## Notes

To align equations with the equals sign, embed in the following blocks, use "&=" for the alignment and separate each line by ending with " \\".

\begin{equation*}
\begin{align*}

\end{align*}
\end{equation*}

VSCode doesn't support equation numbering auto increment and Colab doesn't support "equation*" or "aligned*" for disabling equation numbers. Colab requires "aligned" not "align".
{"ft_lang_label":"__label__en","ft_lang_prob":0.59654146,"math_prob":0.9999167,"size":1196,"snap":"2023-14-2023-23","text_gpt3_token_len":502,"char_repetition_ratio":0.12919463,"word_repetition_ratio":0.08391608,"special_character_ratio":0.39882943,"punctuation_ratio":0.06844106,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.000009,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-03-23T01:33:12Z\",\"WARC-Record-ID\":\"<urn:uuid:b1eca3bd-b63a-4a7f-ba06-bd84b8083eec>\",\"Content-Length\":\"70967\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:49759883-9871-451f-a9af-2e81fbb88c27>\",\"WARC-Concurrent-To\":\"<urn:uuid:01c4825c-eee1-4def-9021-7fa3c6a0ea15>\",\"WARC-IP-Address\":\"142.250.31.121\",\"WARC-Target-URI\":\"https://blog.numerix-dsp.com/2022/11/dsp-equations-in-latex.html\",\"WARC-Payload-Digest\":\"sha1:W2RGZBXI36FWPWNZTYN25C5GMGV7NQMG\",\"WARC-Block-Digest\":\"sha1:GAHS2K3K5JWLQED6IYB6PMFGQ3PF53OT\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-14/CC-MAIN-2023-14_segments_1679296944606.5_warc_CC-MAIN-20230323003026-20230323033026-00669.warc.gz\"}"}