Features for testing whether interpreter interfaces to magma, maple, mathematica etc. are functional - Packages and Features

Skip to content
Back to top
View this page
Edit this page

# Features for testing whether interpreter interfaces to `magma`, `maple`, `mathematica` etc. are functional

class sage.features.interfaces.InterfaceFeature(*args, **kwds)

  Bases: `Feature`

  A `Feature` describing whether an `Interface` is present and functional.

class sage.features.interfaces.Macaulay2(*args, **kwds)

  Bases: `InterfaceFeature`

  A `Feature` describing whether `sage.interfaces.macaulay2.Macaulay2` is present and functional.

  EXAMPLES:

  Sage

      sage: from sage.features.interfaces import Macaulay2
      sage: Macaulay2().is_present()  # random
      FeatureTestResult('macaulay2', False)

  Python

      >>> from sage.all import *
      >>> from sage.features.interfaces import Macaulay2
      >>> Macaulay2().is_present()  # random
      FeatureTestResult('macaulay2', False)

class sage.features.interfaces.Magma(*args, **kwds)

  Bases: `InterfaceFeature`

  A `Feature` describing whether `sage.interfaces.magma.Magma` is present and functional.

  EXAMPLES:

  Sage

      sage: from sage.features.interfaces import Magma
      sage: Magma().is_present()  # random
      FeatureTestResult('magma', False)

  Python

      >>> from sage.all import *
      >>> from sage.features.interfaces import Magma
      >>> Magma().is_present()  # random
      FeatureTestResult('magma', False)

class sage.features.interfaces.Maple(*args, **kwds)

  Bases: `InterfaceFeature`

  A `Feature` describing whether `sage.interfaces.maple.Maple` is present and functional.

  EXAMPLES:

  Sage

      sage: from sage.features.interfaces import Maple
      sage: Maple().is_present()  # random
      FeatureTestResult('maple', False)

  Python

      >>> from sage.all import *
      >>> from sage.features.interfaces import Maple
      >>> Maple().is_present()  # random
      FeatureTestResult('maple', False)

class sage.features.interfaces.Mathematica(*args, **kwds)

  Bases: `InterfaceFeature`

  A `Feature` describing whether `sage.interfaces.mathematica.Mathematica` is present and functional.

  EXAMPLES:

  Sage

      sage: from sage.features.interfaces import Mathematica
      sage: Mathematica().is_present()  # not tested
      FeatureTestResult('mathematica', False)

  Python

      >>> from sage.all import *
      >>> from sage.features.interfaces import Mathematica
      >>> Mathematica().is_present()  # not tested
      FeatureTestResult('mathematica', False)

class sage.features.interfaces.Mathics(*args, **kwds)

  Bases: `InterfaceFeature`

  A `Feature` describing whether `sage.interfaces.mathics.Mathics` is present and functional.

  EXAMPLES:

  Sage

      sage: from sage.features.interfaces import Mathics
      sage: Mathics().is_present()  # not tested
      FeatureTestResult('mathics', False)

  Python

      >>> from sage.all import *
      >>> from sage.features.interfaces import Mathics
      >>> Mathics().is_present()  # not tested
      FeatureTestResult('mathics', False)

class sage.features.interfaces.Matlab(*args, **kwds)

  Bases: `InterfaceFeature`

  A `Feature` describing whether `sage.interfaces.matlab.Matlab` is present and functional.

  EXAMPLES:

  Sage

      sage: from sage.features.interfaces import Matlab
      sage: Matlab().is_present()  # random
      FeatureTestResult('matlab', False)

  Python

      >>> from sage.all import *
      >>> from sage.features.interfaces import Matlab
      >>> Matlab().is_present()  # random
      FeatureTestResult('matlab', False)

class sage.features.interfaces.Octave(*args, **kwds)

  Bases: `InterfaceFeature`

  A `Feature` describing whether `sage.interfaces.octave.Octave` is present and functional.

  EXAMPLES:

  Sage

      sage: from sage.features.interfaces import Octave
      sage: Octave().is_present()  # random
      FeatureTestResult('octave', False)

  Python

      >>> from sage.all import *
      >>> from sage.features.interfaces import Octave
      >>> Octave().is_present()  # random
      FeatureTestResult('octave', False)

class sage.features.interfaces.Regina(*args, **kwds)

  Bases: `InterfaceFeature`

  A `Feature` describing whether `sage.interfaces.regina.Regina` is present and functional.

  EXAMPLES:

  Sage

      sage: from sage.features.interfaces import Regina
      sage: Regina().is_present()  # not tested
      FeatureTestResult('regina', False)

  Python

      >>> from sage.all import *
      >>> from sage.features.interfaces import Regina
      >>> Regina().is_present()  # not tested
      FeatureTestResult('regina', False)

class sage.features.interfaces.Scilab(*args, **kwds)

  Bases: `InterfaceFeature`

  A `Feature` describing whether `sage.interfaces.scilab.Scilab` is present and functional.

  EXAMPLES:

  Sage

      sage: from sage.features.interfaces import Scilab
      sage: Scilab().is_present()  # random
      FeatureTestResult('scilab', False)

  Python

      >>> from sage.all import *
      >>> from sage.features.interfaces import Scilab
      >>> Scilab().is_present()  # random
      FeatureTestResult('scilab', False)

sage.features.interfaces.all_features()

  Return features corresponding to interpreter interfaces.

  EXAMPLES:

  Sage

      sage: from sage.features.interfaces import all_features
      sage: list(all_features())
      [Feature('magma'),
       Feature('matlab'),
       Feature('mathematica'),
       Feature('mathics'),
       Feature('maple'),
       Feature('macaulay2'),
       Feature('octave'),
       Feature('regina'),
       Feature('scilab')]

  Python

      >>> from sage.all import *
      >>> from sage.features.interfaces import all_features
      >>> list(all_features())
      [Feature('magma'),
       Feature('matlab'),
       Feature('mathematica'),
       Feature('mathics'),
       Feature('maple'),
       Feature('macaulay2'),
       Feature('octave'),
       Feature('regina'),
       Feature('scilab')]