Ask Your Question
2

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

asked 2015-01-15 07:42:14 +0100

Chong Wang gravatar image

updated 2015-01-15 09:25:57 +0100

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
3

answered 2015-01-15 08:40:14 +0100

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

Stats

Asked: 2015-01-15 07:42:14 +0100

Seen: 559 times

Last updated: Jan 15 '15