Where do polynomial rings get their scalar multiplication action?

50 views
Skip to first unread message

Nils Bruin

unread,
Jan 24, 2025, 4:38:27 PM1/24/25
to sage-devel
On https://github.com/sagemath/sage/pull/39371 I found that R['x'] knows how to find the scalar multiplication action of R on R['x'] in most cases, but that for R=Qp this is not the case. It looks like there are some benefits from relying on such an action, so it would be nice if this action were discoverable in all cases. My questions:
 - where does this action get installed for most rings R?
 - is there a reason why for Qp this action is not installed?

Nils Bruin

unread,
Jan 24, 2025, 11:24:13 PM1/24/25
to sage-devel
It seems that padic polynomials simply have a malfunctioning _rmul_ !!!

    def _rmul_(self, left):
        return None
        # The code below has never been tested and is somehow subtly broken.

see:


it shouldn't be too hard to fix that? Someone with some experience with the code there could probably fix that quite easily.
Reply all
Reply to author
Forward
0 new messages