SageMathTools¶
sagemathtool.spad line 84 [edit on github]
SageMathTools provides some functionality from Sage https://sagemath.org.
- join: (String, List String) -> String
- join(sep,ls)returns an element that is the concatenation of all strings in- lsbut separated by- sep, for example, concat(- "/",[“a”,- "b",- "c"]) returns “a/b/c”.
- sage: String -> List String
- sage(cmd)executes the command- cmdin sage and returns the resulting lines of output (unparsed)/
- sageGroebnerBasis: (List Polynomial Integer, List Symbol) -> List Polynomial Integer
- sageGroebnerBasis(pols, vars)assumes that- polsare in the variables vars and computes a Groebner basis of- polswith respect to the degrevlex order in vars.
- sageGroebnerEliminate: (List Polynomial Integer, List Symbol, List Symbol) -> List Polynomial Integer
- sageGroebnerEliminate(pols,elimvars,vars)assumes that- polsare in the variables concat(- elimvars,- vars), computes a Groebner basis of- polswith respect to a block order that is degrevlex in- elimvarsfollowed by degrevlex in- vars. Only the part of the Groebner basis that have no variables in- elimvarsis returned.
- sageInteger: String -> Integer
- sageInteger(cmd)executes a sage command that yields and integer and returns this integer. For example sageInteger(“print(factorial(10))”).