MCPcopy Create free account
hub / github.com/Singular/Singular / evaluateApplication

Method evaluateApplication

Singular/dyn_modules/openmath/context.py:59–73  ·  view source on GitHub ↗
(self, app)

Source from the content-addressed store, hash-verified

57 except OutOfScopeError:
58 return omv
59 def evaluateApplication(self, app):
60 efunc = self.evaluate(app.func)
61 eargs = [self.evaluate(a) for a in app.args]
62 if callable(efunc):
63 if raiseException:
64 return self.apply(efunc,eargs)
65 else:
66 try:
67 return self.apply(efunc, eargs)
68 except EvaluationFailedError, NotImplementedError:
69 return OMA(efunc, eargs)
70 #return self
71 else:
72 #print efunc
73 return OMA(efunc, eargs)
74 def evaluate(self,omobject):
75
76 if isinstance(omobject,OMV):

Callers 1

evaluateMethod · 0.95

Calls 3

evaluateMethod · 0.95
applyMethod · 0.95
OMAClass · 0.85

Tested by

no test coverage detected