Jump to content

Category talk:Wren-gmp: Difference between revisions

m (→‎MPF or MPFR?: Changed number of transcendental functions wrapped to 21.)
Line 173:
 
// Converts the current instance to:
foreign toNum // a number
foreign toString(b) // a base 'b' string
toString { toString(10) } // a base 10 string
toMpq { Mpq.fromMpzfrom(this) } // an Mpq object
toMpf { Mpf.fromMpzfrom(this) } // an Mpf object
 
/* 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 0Mpz.zero
if (m is Num) m = Mpz.from(m)
if (m.probPrime(15) > 0) return m.copy()
9,492

edits

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