Documentation
¶
Index ¶
- func FindFirstGenerators(Pnum *integerpolynomial.Element, precision int) ([]int, *integerpolynomial.Element, error)
- func FirstNonzeroCoefficient(Pnum *integerpolynomial.Element) (*integer.Element, *integervector.Element, error)
- func IntSliceToString(S []int) string
- func IntegerSliceToSingularity(S []int) string
- func IntegerSliceToString(S []*integer.Element) string
- func SliceOfIntSliceFromString(str string) ([][]int, error)
- func SliceOfIntSliceToString(S [][]int) string
- func SliceOfIntegerSliceToString(S [][]*integer.Element) string
- func ToIntegralPolynomial(f *rationalpolynomial.Element) (*integerpolynomial.Element, error)
- func TrimIntegerPolynomial(f *integerpolynomial.Element, d int) *integerpolynomial.Element
- func TrimRationalPolynomial(f *rationalpolynomial.Element, d int) *rationalpolynomial.Element
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 ¶
IntSliceToString represents a slice of ints as a string
func IntegerSliceToSingularity ¶
IntegerSliceToSingularity rewrites [r,a] as string 1/r(1,a,r-a)
func IntegerSliceToString ¶
IntegerSliceToString represents a slice of integers as a string
func SliceOfIntSliceFromString ¶
SliceOfIntSliceFromString creates the same from string
func SliceOfIntSliceToString ¶
SliceOfIntSliceToString represents a slice of int slices as a string
func SliceOfIntegerSliceToString ¶
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.