EXAMPLES:
sage: from sage.libs.mwrank.mwrank import _Curvedata, _mw
sage: c = _Curvedata(1,2,3,4,5)
sage: print c
[1,2,3,4,5]
b2 = 9 b4 = 11 b6 = 29 b8 = 35
c4 = -183 c6 = -3429
disc = -10351 (# real components = 1)
#torsion not yet computed
sage: t= _mw(c)
sage: t.search(10)
sage: t
[[1:2:1]]
Initialises mwrank/eclib’s internal prime list.
INPUT:
EXAMPLES:
sage: file= SAGE_TMP + '/PRIMES'
sage: open(file,'w').write(' '.join([str(p) for p in prime_range(10^7,10^7+20)]))
sage: mwrank_initprimes(file, verb=True)
The previous command does produce the following output when run from the command line, but not during a doctest:
Computed 78519 primes, largest is 1000253
reading primes from file ...
read extra prime 10000019
finished reading primes from file ...
Extra primes in list: 10000019
sage: mwrank_initprimes("x" + file, True)
Traceback (most recent call last):
...
IOError: No such file or directory: ...
Sets the working floating point precision of mwrank.
INPUT:
OUTPUT:
None.
EXAMPLE:
sage: from sage.libs.mwrank.mwrank import set_precision
sage: set_precision(50)