Category talk:Wren-gmp: Difference between revisions
→Source code (Wren): Bug fixes.
m (→MPF or MPFR?: Changed number of transcendental functions wrapped to 21.) |
(→Source code (Wren): Bug fixes.) |
||
Line 173:
// Converts the current instance to:
foreign toNum
foreign toString(b)
toString { toString(10) }
toMpq { Mpq.
toMpf { Mpf.
/* Methods which assign their result to the current instance ('this').
Line 456:
// Returns Mpz.zero in the event of failure.
static pollardRho(m, seed, c) {
if (m < 2) return
if (m is Num) m = Mpz.from(m)
if (m.probPrime(15) > 0) return m.copy()
|