Hi Luis! On 20 Nov., 19:10, finotti <luis.fino...@gmail.com> wrote: ... > I know that Sage developers have different priorities, but this is > sort of important to me...
Definitely polynomials *are* a priority for some developers... > So, is there a way I can redefine how Sage > computes powers of polynomials in characteristic p>0 locally (until > this is "fixed" in Sage)? Any pointers or references? First, I would produce a clone of Sage, in order to not destroy your installation by mistake. So, in the shell, do sage -clone work where you can replace "work" by another word that you like (except "main"). Then, if I am not mistaken, multivariate polynomials over finite fields and over the rationals are implemented in SAGE_ROOT/devel/sage-work/sage/rings/polynomial/ multi_polynomial_libsingular.pyx if I am not mistaken. Univariate polynomials are somewhere else. Basic arithmetic in python/cython is provided by certain special methods -- you may consult the Python references about them. It is __mul__ for multiplication, __add__ for sums, and __pow__ for exponentiation. So, __pow__ is the method that you have to edit. Once you've done, you need to compile and test your code. This is done by starting Sage with an additional command line option, sage -br work "b" means "build", "r" means "run" (so, Sage will start if the compilation worked), and "work" refers to the clone (with "main", you would return to your original installation). Then you can test your code. If it works, you can produce a patch -- this is explained in the Sage Developer's Guide. This should then be uploaded to the Sage Trac (I think William Stein is the person to ask for an account). It will be reviewed, and may eventually be part of the Sage distribution. Best regards, and thanks for your contribution! Simon -- 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