Jump to content

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,486

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.