Skip to content

Commit

Permalink
Tweaked LaTeX a little bit
Browse files Browse the repository at this point in the history
- Switched to x^|P| since it's a bit less noisy.

- Adopted backtick-math blocks since GitHub often throws a fit
  otherwise.
  • Loading branch information
geky committed Oct 23, 2024
1 parent 0d13876 commit a25dfe1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a25dfe1

Please sign in to comment.