gf2

Math operations for the Galois field of two elements

Usage no npm install needed!

<script type="module">
  import gf2 from 'https://cdn.skypack.dev/gf2';
</script>

README

gf2

Travis (.org) Codecov npm monthly downloads current version semantic-release

Math operations for the Galois field of two elements

Description

The wikipedia article on GF(2) is quite good.

This library provides an add function so that 1 + 1 = 0 as it would when using GF(2).

Tested On

  • Google Chrome
  • Node.js 6+

To Build

To Use

  • import { add } from 'gf2'
  • Use gf2.add(1, 1) = 0

Project Structure

Source and test code are located in the src directory.

Functionality

  • Currently only the add function.

License

:copyright: Willy Nolan 2018

MIT