Exemple #1
0
def has_maple():
    """
    Test if Maple is available.

    EXAMPLES::

        sage: from sage.doctest.external import has_maple
        sage: has_maple() # random, optional - maple
        True
    """
    from sage.interfaces.maple import maple
    try:
        maple('2+3')
        return True
    except Exception:
        return False
Exemple #2
0
def has_maple():
    """
    Test if Maple is available.

    EXAMPLES::

        sage: from sage.doctest.external import has_maple
        sage: has_maple() # random
        True
    """
    from sage.interfaces.maple import maple
    try:
        maple('2+3')
        return True
    except Exception:
        return False
Exemple #3
0
def get_ini_Hstar():
    from sage.interfaces.maple import maple
    return maple(string.replace(_ini_Hstar_code, '\n', ' '))
Exemple #4
0
 def testFormula(self):
     self.assertEqual(maple.testFormula(), maple('true'))
Exemple #5
0
 def testExample(self):
     self.assertEqual(maple.testFnd3a(), maple('true'))