Ask Your Question
1

How to import some commands?

asked 2013-06-13 16:42:17 +0200

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-06-13 16:51:08 +0200

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.

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

Stats

Asked: 2013-06-13 16:42:17 +0200

Seen: 229 times

Last updated: Jun 13 '13