QAuxiliaryTools¶
qetatool.spad line 160 [edit on github]
Miscellaneous tools to deal with polynomials.
- clearDenominator: Polynomial Fraction Integer -> Polynomial Integer
clearDenominator(p)multiplies the polynomialpover rational numbers with the least common multiple of the denominator of all its coefficients and returns the result as a polynomial over the integers.
- index: (String, String) -> List Integer
index(s,i)returns the list integers encoded in the strings(and separated by one underscore) when the initial stringiis removed. The function returns the empty list if the string does not start with the initial or has not the right format. It can be considered as the inverse of indexedSymbol. For the special case that s=i, the function returns [-1].
- indexedSymbol: (String, List Integer) -> Symbol
indexedSymbol(s, l)returns a symbol with a name that starts with the stringsand is directly followed by the numbers oflseparated by underscores (“__”).
- indexedSymbols: (String, List Integer) -> List Symbol
indexedSymbols(s, l)returns indexedSymbols(s, [[n] forninl]).
- indexedSymbols: (String, List List Integer) -> List Symbol
indexedSymbols(s, ll)returns [indexedSymbol(s,l) forlinll].
- indexedSymbols: (String, NonNegativeInteger) -> List Symbol
indexedSymbols(s, n)returns indexedSymbols(s, [iforiin 1..n])
- integerPrimitivePart: Polynomial Fraction Integer -> Polynomial Integer
integerPrimitivePart(p)returns primitivePart(clearDenominator(p)).