Skip to content

Commit

Permalink
Add () to functions/methods in README
Browse files Browse the repository at this point in the history
  • Loading branch information
mhostetter committed Feb 12, 2022
1 parent cf97f21 commit 4083e89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ GF(81, order=2^8)

Galois field arrays also have constructor class methods for convenience. They include:

- `FieldArray.Zeros`, `FieldArray.Ones`, `FieldArray.Identity`, `FieldArray.Range`, `FieldArray.Random`, `FieldArray.Elements`
- `FieldArray.Zeros()`, `FieldArray.Ones()`, `FieldArray.Identity()`, `FieldArray.Range()`, `FieldArray.Random()`, `FieldArray.Elements()`

Galois field elements can either be displayed using their integer representation, polynomial representation, or
power representation. Calling `FieldClass.display` will change the element representation. If called as a context
power representation. Calling `FieldClass.display()` will change the element representation. If called as a context
manager, the display mode will only be temporarily changed.

```python
Expand Down Expand Up @@ -338,7 +338,7 @@ Poly((α^7 + α^6 + α^5 + 1)x^3 + (α^4 + 1)x + (α^5 + 1), GF(2^8))

Polynomials can also be created using a number of constructor class methods. They include:

- `Poly.Zero`, `Poly.One`, `Poly.Identity`, `Poly.Random`, `Poly.Integer`, `Poly.String`, `Poly.Degrees`, `Poly.Roots`
- `Poly.Zero()`, `Poly.One()`, `Poly.Identity()`, `Poly.Random()`, `Poly.Integer()`, `Poly.String()`, `Poly.Degrees()`, `Poly.Roots()`

```python
# Construct a polynomial by specifying its roots
Expand Down

0 comments on commit 4083e89

Please sign in to comment.