Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Return index of variable

I have the following

R.<a> = InfinitePolynomialRing(QQ)
b = a[3]    # 3 or any arbitrary non-negative integer

Is there a function that takes b as the input and gives the 3 back?