poly

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EuclideanAlgorithm

func EuclideanAlgorithm(a, b Poly, R int) (sigma Poly, omega Poly, err error)

Types

type Poly

type Poly []element.Element

Poly is a polynomial that is p[0]*x^(len(p)-1) + p[1]*x^(len(p)-2) + ... + p[len(p)-1].

func NewMonomial

func NewMonomial(degree int, coefficient element.Element) Poly

func NewPoly

func NewPoly(data []byte) Poly

func One

func One() Poly

func Zero

func Zero() Poly

func (Poly) Add

func (p Poly) Add(q Poly) Poly

func (Poly) Coefficient

func (p Poly) Coefficient(degree int) element.Element

func (Poly) Degree

func (p Poly) Degree() int

func (Poly) Eval

func (p Poly) Eval(x element.Element) element.Element

func (Poly) Mul

func (p Poly) Mul(q Poly) Poly

func (Poly) MulElement

func (p Poly) MulElement(v element.Element) Poly

func (Poly) MulMonomial

func (p Poly) MulMonomial(degree int, coefficient element.Element) Poly

Jump to

Keyboard shortcuts

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