Hi all: As a newbie Sage contributor, i thought it would be good practice to submit small chunks of code (instead of big ones like what i recently submitted). So i wrote a useful little function to check algebraic dependence for a given list of polynomials (documentation below). I'd like to get it incorporated into Sage, but where in the Sage library should i propose to put it? If it operated on a single polynomial, then i think i would add it as a method to the class MPolynomial_libsingular(sage.rings.polynomial.multi_polynomial.MPolynomial). But it operates on a list of polynomials. Any advice?
Alex def alg_dep(fs): r""" This function returns an irreducible annihilating polynomial for the polynomials in `fs`, if those polynomials are algebraically dependent. Otherwise it returns 0. INPUT: - ``fs`` - A list of polynomials `f_1,\ldots,f_r` from a common polynomial ring. OUTPUT: If the polynomials in `fs` are algebraically dependent, then the output is an irreducible polynomial `g` in `R[T_1,...,T_r]` such that `g(f_1,\ldots,f_r) = 0`. If the polynomials in `fs` are algebraically independent, then the output is 0. """ -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org