MCPcopy Create free account
hub / github.com/ActiveState/code / mul

Method mul

recipes/Python/59884_RPN_Stack_class/recipe-59884.py:167–169  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

165 self.pop(2); self.push(newx)
166
167 def mul(self):
168 newx = self.gety() * self.getx()
169 self.pop(2); self.push(newx)
170
171 def div(self):
172 newx = self.gety() / self.getx()

Callers

nothing calls this directly

Calls 4

getyMethod · 0.95
getxMethod · 0.95
popMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected