Category talk:Wren-math: Difference between revisions
Content deleted Content added
→Source code: Added Cantor pair/unpair methods to Int class. |
→Source code: Math.cbrt now deals properly with negative numbers. |
||
Line 38:
// Returns the cube root of 'x'.
static cbrt(x) { (x >= 0) ? x.pow(1/3) : -(-x).pow(1/3) }
// Returns the square root of 'x' squared + 'y' squared.
|