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