Opened 9 years ago
Closed 9 years ago
#14200 closed enhancement (fixed)
Add shortcut to add multiple variables with different names
Reported by: | tscrim | Owned by: | tscrim |
---|---|---|---|
Priority: | major | Milestone: | sage-5.8 |
Component: | algebra | Keywords: | polynomials, variables |
Cc: | billey | Merged in: | sage-5.8.beta3 |
Authors: | Travis Scrimshaw | Reviewers: | Sara Billey |
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
People have been asking me for an easy/automated way to create polynomial rings in two sets of varibles such as x0, x1, x2, x3, y0, y1, y2, y3
. This patch provides a way to do so:
sage: PolynomialRing(ZZ, 3, var_array=['x','y']) Multivariate Polynomial Ring in x0, y0, x1, y1, x2, y2 over Integer Ring sage: PolynomialRing(ZZ, 3, var_array='a,b') Multivariate Polynomial Ring in a0, b0, a1, b1, a2, b2 over Integer Ring sage: PolynomialRing(ZZ, 2, 3, var_array='m') Multivariate Polynomial Ring in m00, m01, m02, m10, m11, m12 over Integer Ring sage: PolynomialRing(ZZ, 2, var_array='m') Multivariate Polynomial Ring in m00, m01, m10, m11, over Integer Ring
Attachments (1)
Change History (4)
Changed 9 years ago by
comment:1 Changed 9 years ago by
- Status changed from new to needs_review
comment:2 Changed 9 years ago by
- Reviewers set to Sara Billey
- Status changed from needs_review to positive_review
comment:3 Changed 9 years ago by
- Merged in set to sage-5.8.beta3
- Resolution set to fixed
- Status changed from positive_review to closed
Note: See
TracTickets for help on using
tickets.