Category talk:Wren-math: Difference between revisions
Content added Content deleted
m (→Source code: No need for Int qualifier.) |
(→Source code: Added Math.dim method.) |
||
Line 138: | Line 138: | ||
return Math.gamma(x).abs.log |
return Math.gamma(x).abs.log |
||
} |
} |
||
// Returns the positive difference of two numbers. |
|||
static dim(x, y) { (x >= y) ? x - y : 0 } |
|||
// Static alternatives to instance methods in Num class. |
// Static alternatives to instance methods in Num class. |