Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 3
0
def get_ini_Hstar():
    from sage.interfaces.maple import maple
    return maple(string.replace(_ini_Hstar_code, '\n', ' '))
Exemplo n.º 4
0
 def testFormula(self):
     self.assertEqual(maple.testFormula(), maple('true'))
Exemplo n.º 5
0
 def testExample(self):
     self.assertEqual(maple.testFnd3a(), maple('true'))