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

Method pow

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

Source from the content-addressed store, hash-verified

177 self.pop(2); self.push(newx)
178
179 def pow(self): #raise y register to the x power
180 newx = self.gety()**self.getx()
181 self.pop(2); self.push(newx)
182
183 def neg(self): #negate
184 newx = -self.getx()

Callers 15

recipe-580804.jsFile · 0.45
recipe-577277.jsFile · 0.45
compressFunction · 0.45
encodeFunction · 0.45
bFunction · 0.45
recipe-577464.pyFile · 0.45
dec2binFunction · 0.45
gFunction · 0.45
int_to_bytes_neededFunction · 0.45
tkPolarMethod · 0.45
recipe-577154.pyFile · 0.45
g_extrapolatingModelMethod · 0.45

Calls 4

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

Tested by

no test coverage detected