On Mar 18, 2012, at 05:31 , firebird wrote: > Thanks Justin. My mistake... minimal_polynomial is what is required. > Graham
And, in case you didn't know about these features of sage/python: - if you have an object, procedure, ..., you can find out more about what is available for said item by following it with a '.' and the TAB character. The system will print out a list of possible "methods" associated to the name. If you follow the '.' with the (possible) beginning of a name, then the TAB, you get a list of "methods" with that beginning: sage: M.=min[TAB] min minimal_polynomial minpoly min_cycles minimize min_symbolic minimize_constrained sage: M.=min - similarly, if you follow a name with one or two '?'s, you get the documentation associated with that name (one '?') or both doc and implementation (if in python) (two '?'s). A caveat: once you type "[]"s or "()"s, the parser won't be able to determine the object in question (dynamic typing), so this doesn't work: sage: MS=MatrixSpace(ZZ,2,2) sage: MS.random_element().min[TAB] (yields no output). HTH Justin PS: to be clear, in the above, [TAB] means "press the tab key" (brackets are not typed). -- Justin C. Walker, Curmudgeon-At-Large Institute for the Enhancement of the Director's Income -------- Experience is what you get when you don't get what you want. -------- -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org