conway

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

README

Go Report Card coverage-badge GoDoc

Algobra: Conway polynomials

This package contains the list of Conway polynomials provided on the homepage of Frank Lübeck.

If desired, the package can be used on its own by utilizing Lookup, which is the only exported function. The return value is the slice uints representing the coefficients of the Conway polynomial.

Documentation

Overview

Package conway contains a database of Conway polynomials. The list of polynomials was compiled by Frank Lübeck: http://www.math.rwth-aachen.de/~Frank.Luebeck/data/ConwayPol/index.html?LANG=en

Example
package main

import (
	"fmt"

	"github.com/ReneBoedker/algobra/finitefield/conway"
)

func main() {
	coefs, err := conway.Lookup(3, 5)
	if err != nil {
		return
	}

	fmt.Println(coefs)
}
Output:

[1 2 0 0 0 1]

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lookup

func Lookup(char, extDeg uint) (coefs []uint, err error)

Lookup returns the coefficients for a Conway polynomial for the finite field of characteristic char and extension degree extDeg. The element at position i is the coefficient of X^i.

If no such polynomial is in the database, an InputValue-error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL