First time here? Check out the FAQ!

Ask Your Question
1

How to import some commands?

asked 11 years ago

Neda gravatar image

Hello

in many question that I asked before the answer was I should import sage: from sage.rings.polynomial.toy_buchberger import spol /.. I want to know how should I import these? I wrote these commands in sage but I've got error, so how should I use these import things?

Thank you

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 11 years ago

tmonteil gravatar image

It means that you just have to copy the given line:

from sage.rings.polynomial.toy_buchberger import spol

in the Sage command line or in the notebook, and then the spol() function becomes available for the rest of your computation. The fact that not everything is imported by default to save memory and to accelerate startup.

If you get an error after typing such a line, then there is a problem with your Sage installation, please report it by giving an example of what you typed, your Sage version, which binary you downloaded, which machine and OS you used.

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

Stats

Asked: 11 years ago

Seen: 304 times

Last updated: Jun 13 '13