Category talk:Wren-math: Difference between revisions

→‎Source code: Changed name of just added isRoot method to isPower
(→‎Source code: Added various integer root functions..)
(→‎Source code: Changed name of just added isRoot method to isPower)
Line 184:
 
// Returns whether or not 'x' is a perfect 'n'th power.
static isRootisPower(n, x) {
var r = root(n, x)
return r.pow(n) == x
9,490

edits