14.15.1 Introduction

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:

  1. singular_console() - A function that dumps you into an interactive command-line Singular session.

  2. 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 $ 10$ computed using Singular.

  3. singular.eval(expr) - Evaluation of arbitrary Singular expressions, with the result returned as a string.

See About this document... for information on suggesting changes.