Skip to content

Multiplication of additive semigroup elements by nonnegative integers #16384

@nthiery

Description

@nthiery

It's natural to have the following:

                sage: E = CommutativeAdditiveMonoids().example()
                sage: e = E.an_element()
                sage: 2*e
                2*a + 6*c + 4*b + 8*d
                sage: e*3
                3*a + 9*c + 6*b + 12*d

Depends on #20767

CC: @sagetrac-sage-combinat @nathanncohen @jdemeyer

Component: categories

Work Issues: failing tests, memory usage

Branch/Commit: u/nthiery/categories/additive-semigroups-intmul-16384 @ 68d43b8

Issue created by migration from https://trac.sagemath.org/ticket/16384

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions