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

Method evaluate

Singular/dyn_modules/openmath/context.py:74–85  ·  view source on GitHub ↗
(self,omobject)

Source from the content-addressed store, hash-verified

72 #print efunc
73 return OMA(efunc, eargs)
74 def evaluate(self,omobject):
75
76 if isinstance(omobject,OMV):
77
78 return self.evaluateVariable(omobject)
79 if isinstance(omobject,OMS):
80 return self.evaluateSymbol(omobject)
81 if isinstance(omobject,OMA):
82 return self.evaluateApplication(omobject)
83 if isinstance(omobject,OMBIND):
84 return omobject.evaluate(self)
85 return omobject
86 def evaluateInScope(self,omobject, scope):
87 bak=self.scope
88 self.scope=scope

Callers 2

evaluateApplicationMethod · 0.95
evaluateInScopeMethod · 0.95

Calls 3

evaluateVariableMethod · 0.95
evaluateSymbolMethod · 0.95
evaluateApplicationMethod · 0.95

Tested by

no test coverage detected