Module: sage.interfaces.singular
Author Log:
- David Joyner and William Stein (2005): first version
- Martin Albrecht (2006-03-05): code so singular.[tab]
- and x = singular(...), x.[tab] includes all singular commands.
- Martin Albrecht (2006-03-06): This patch adds the equality
- symbol to singular. Also fix problem in which ") " as prompt
- means comparison will break all further communication with Singular.
- Martin Albrecht (2006-03-13): added current_ring()
- and current_ring_name()
- Stein (2006-04-10): Fixed problems with ideal constructor
- Martin Albrecht (2006-05-18): added sage_poly.
- This interface is extremely flexible, since it's exactly like typing
- into the Singular interpreter, and anything that works there should
- work here.
The Singular interface will only work if Singular is installed on your
computer; this should be the case, since Singular is included with
SAGE. The interface offers three pieces of functionality:
singular_console()
- A function that dumps you
into an interactive command-line Singular session.
singular(expr, type='def')
- Creation of a Singular
object. This provides a Pythonic interface to Singular. For example,
if f=singular(10)
, then f.factorize()
returns the
factorization of
computed using Singular.
singular.eval(expr)
- Evaluation of arbitrary Singular
expressions, with the result returned as a string.
Release 2006.05.25, documentation updated on May 25, 2006.
See About this document... for information on suggesting changes.