fanoutil

package
v0.1.2-0...-50d33d3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindFirstGenerators

func FindFirstGenerators(Pnum *integerpolynomial.Element, precision int) ([]int, *integerpolynomial.Element, error)

Pnum is a hilbert numerator. Return an sequence of integers for which the first nonconstant coefficient of

Pnum / &*[ 1 - t^w : w in W ]

is negative (or else is nonexistent to precision of 100 terms).

func FirstNonzeroCoefficient

func FirstNonzeroCoefficient(Pnum *integerpolynomial.Element) (*integer.Element, *integervector.Element, error)

Pnum is a poly of the form a0 + a1 * t + a2 * t^2 + ... Return ad, d where d > 0 is the smallest degree for which ad is not 0. If Pnum = a0, then return nil,nil. Otherwise error.

func IntSliceToString

func IntSliceToString(S []int) string

IntSliceToString represents a slice of ints as a string

func IntegerSliceToSingularity

func IntegerSliceToSingularity(S []int) string

IntegerSliceToSingularity rewrites [r,a] as string 1/r(1,a,r-a)

func IntegerSliceToString

func IntegerSliceToString(S []*integer.Element) string

IntegerSliceToString represents a slice of integers as a string

func SliceOfIntSliceFromString

func SliceOfIntSliceFromString(str string) ([][]int, error)

SliceOfIntSliceFromString creates the same from string

func SliceOfIntSliceToString

func SliceOfIntSliceToString(S [][]int) string

SliceOfIntSliceToString represents a slice of int slices as a string

func SliceOfIntegerSliceToString

func SliceOfIntegerSliceToString(S [][]*integer.Element) string

SliceOfIntegerSliceToString represents a slice of integer slices as a string

func ToIntegralPolynomial

func ToIntegralPolynomial(f *rationalpolynomial.Element) (*integerpolynomial.Element, error)

ToIntegralPolynomial returns the rational polynomial f as an integral polynomial, if all its coefficients are in fact integers; otherwise an error.

func TrimIntegerPolynomial

func TrimIntegerPolynomial(f *integerpolynomial.Element, d int) *integerpolynomial.Element

TrimIntegerPolynomial returns polynomial f with all terms of degree >= d removed

func TrimRationalPolynomial

func TrimRationalPolynomial(f *rationalpolynomial.Element, d int) *rationalpolynomial.Element

TrimRationalPolynomial returns polynomial f with all terms of degree >= d removed

Types

This section is empty.

Jump to

Keyboard shortcuts

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