Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.js
File · 0.45
recipe-577277.js
File · 0.45
compress
Function · 0.45
encode
Function · 0.45
b
Function · 0.45
recipe-577464.py
File · 0.45
dec2bin
Function · 0.45
g
Function · 0.45
int_to_bytes_needed
Function · 0.45
tkPolar
Method · 0.45
recipe-577154.py
File · 0.45
g_extrapolatingModel
Method · 0.45
Calls
4
gety
Method · 0.95
getx
Method · 0.95
pop
Method · 0.45
push
Method · 0.45
Tested by
no test coverage detected