Skip to content

Negative exponents for MPolys #2276

Description

@SoongNoonien

In the context of Nemocas/AbstractAlgebra.jl#2385 I found a problem with negative exponents in Nemo:

julia> R,(x,y)=ZZ[:x,:y];

julia> R([ZZ(1)], [[ZZ(-1), ZZ(0)]])
x

julia> R([ZZ(1)], [[-1, 0]])
x^18446744073709551615

In the case of negative ZZRingElems the sign is ignored and in the case of negative Ints the actual bits of the Ints are interpreted as a UInt. I think both should just raise an error. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions