Skip to content

Pass number of variables to polygens #22809

@mforets

Description

@mforets
mannequin

The number of generators of a polynomial can be specified as a number:

sage: PolynomialRing(QQ, 'x', 4).gens()
(x0, x1, x2, x3)

This ticket should allow doing:

sage: polygens(QQ, 'x', 4)
(x0, x1, x2, x3)

Currently it returns TypeError: polygens() takes at most 2 arguments (3 given).

CC: @nbruin @tscrim @videlec

Component: commutative algebra

Keywords: polynomial vector

Author: Marcelo Forets

Branch/Commit: 5f1a4da

Reviewer: Simon King

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions