示例#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
示例#2
0
文件: external.py 项目: Babyll/sage
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
示例#3
0
def get_ini_Hstar():
    from sage.interfaces.maple import maple
    return maple(string.replace(_ini_Hstar_code, '\n', ' '))
示例#4
0
文件: diface.py 项目: boykov/eab-auto
 def testFormula(self):
     self.assertEqual(maple.testFormula(), maple('true'))
示例#5
0
文件: diface.py 项目: boykov/eab-auto
 def testExample(self):
     self.assertEqual(maple.testFnd3a(), maple('true'))