Category talk:Wren-big: Difference between revisions

Content added Content deleted
(→‎Source code: Added prime factorization plus 3 other utility methods.)
m (→‎Source code: Changed a program comment.)
Line 1,063: Line 1,063:
}
}


// Returns the cube root of the current instance
// Returns the cube root of the current instance i.e. the largest integer 'r' such that
// r.cube <= this.
icbrt {
icbrt {
if (isSmall) return BigInt.small_(toSmall.cbrt.floor)
if (isSmall) return BigInt.small_(toSmall.cbrt.floor)