From a25dfe13882c982ac9acb27101d7755d8bbf2bfe Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Tue, 22 Oct 2024 19:10:25 -0500 Subject: [PATCH] Tweaked LaTeX a little bit - Switched to x^|P| since it's a bit less noisy. - Adopted backtick-math blocks since GitHub often throws a fit otherwise. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4eae500..cf05259 100644 --- a/README.md +++ b/README.md @@ -131,12 +131,12 @@ crc = 0x3b ``` You can describe this mathematically in [GF(2)][gf2] (the extra -$x^{\left|P(x)\right|}$ represents shifting the message to make space for +$x^{\left|P\right|}$ represents shifting the message to make space for the CRC), but the above example is probably easier to understand: -$$ -C(x) = M(x) x^{\left|P(x)\right|} - (M(x) x^{\left|P(x)\right|} \bmod P(x)) -$$ +``` math +C(x) = M(x) x^{\left|P\right|} - (M(x) x^{\left|P\right|} \bmod P(x)) +``` The neat thing is that this remainder operation does a real good job of mixing up all the bits. So if you choose a good CRC polynomial, it's very