From 6717594c469ce8fdf25857a6e7c71ba0eb683138 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Fri, 19 Feb 2021 01:13:16 +0000 Subject: [PATCH] book: Render gtab and invtab as matrices --- book/src/background/fields.md | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/book/src/background/fields.md b/book/src/background/fields.md index 11ec413..779ef08 100644 --- a/book/src/background/fields.md +++ b/book/src/background/fields.md @@ -269,13 +269,18 @@ Let $x_3 = uv^2, x_2 = x_3^{2^8}, x_1 = x_2^{2^8}, x_0 = x_1^{2^8}.$ #### Precompute the following tables: $$ -\begin{array}{l} -gtab[0] = g^0, g^1, ..., g^{255} \\ -gtab[1] = (g^{2^8})^0, (g^{2^8})^1, ..., (g^{2^8})^{255} \\ -gtab[2] = (g^{2^{16}})^0, (g^{2^{16}})^1, ..., (g^{2^{16}})^{255} \\ -gtab[3] = (g^{2^{24}})^0, (g^{2^{24}})^1, ..., (g^{2^{24}})^{255} \\ -invtab = (g^{2^{-24}})^0, (g^{2^{-24}})^1, ..., (g^{2^{-24}})^{255} \\ -\end{array} +gtab = \begin{bmatrix} +g^0 & g^1 & ... & g^{255} \\ +(g^{2^8})^0 & (g^{2^8})^1 & ... & (g^{2^8})^{255} \\ +(g^{2^{16}})^0 & (g^{2^{16}})^1 & ... & (g^{2^{16}})^{255} \\ +(g^{2^{24}})^0 & (g^{2^{24}})^1 & ... & (g^{2^{24}})^{255} +\end{bmatrix} +$$ + +$$ +invtab = \begin{bmatrix} +(g^{2^{-24}})^0 & (g^{2^{-24}})^1 & ... & (g^{2^{-24}})^{255} +\end{bmatrix} $$ ### i = 0, 1