Ask Your Question

what does ratpoly.<t> = PolynomialRing(QQ) mean

asked 2015-01-15 00:42:14 -0600

Chong Wang gravatar image

updated 2015-01-15 02:25:57 -0600

FrédéricC gravatar image

In official tutorial, I see the following command:

ratpoly.<t> = PolynomialRing(QQ)

I have python backgroud. I wonder what does it do and how it is implemented. After all, variable ratpoly is not defined previously.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2015-01-15 01:40:14 -0600

SL gravatar image

Sage does some preparsing on what you type. You can see what happens with the command preparse

 sage: preparse('ratpoly.<t> = PolynomialRing(QQ)')
 "ratpoly = PolynomialRing(QQ, names=('t',)); (t,) = ratpoly._first_ngens(1)"
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-01-15 00:42:14 -0600

Seen: 287 times

Last updated: Jan 15 '15