First time here? Check out the FAQ!

Ask Your Question
2

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

asked 10 years ago

Chong Wang gravatar image

updated 10 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered 10 years ago

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)"
Preview: (hide)
link

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: 10 years ago

Seen: 571 times

Last updated: Jan 15 '15