If there was a specific class for polynomials over number fields, it
would go there, but I don't think there is. I suggest putting the
code into a new file in rings/number_field, but then adding a method
to the relevant polynomial classes which checks that the base ring is
a number field and calls the new function if so, raising an error if
not.
It is probably worth looking at the factor() method in
rings/polynomial/polynomial_element.pyx and reading the comments
there, for a model of a rather bad way to do this.
John
>
> Jing
>
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sage-devel+...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-devel/a37e5961-e3f9-49d5-b251-2e7bd5573cf2n%40googlegroups.com.