Feature for testing the presence of PARI/GP.¶
- class sage.features.pari.Gp(*args, **kwds)[source]¶
Bases:
Executable
A
Feature
describing the presence of thegp
executable.EXAMPLES:
sage: from sage.features.pari import Gp sage: Gp().is_present() # needs sage.libs.pari FeatureTestResult('gp_executable', True)
>>> from sage.all import * >>> from sage.features.pari import Gp >>> Gp().is_present() # needs sage.libs.pari FeatureTestResult('gp_executable', True)
- class sage.features.pari.PariFeature(*args, **kwds)[source]¶
Bases:
Feature
A
Feature
describing the presence of a PARI/GP functionality.EXAMPLES:
sage: from sage.features.pari import PariFeature sage: F = PariFeature('pari_seadata', 'ellmodulareqn(211)') sage: F.is_present() # optional - pari_seadata FeatureTestResult('pari_seadata', True)
>>> from sage.all import * >>> from sage.features.pari import PariFeature >>> F = PariFeature('pari_seadata', 'ellmodulareqn(211)') >>> F.is_present() # optional - pari_seadata FeatureTestResult('pari_seadata', True)