Interface to mwrank

sage.interfaces.mwrank.Mwrank(options='', server=None, server_tmpdir=None)

Create and return an mwrank interpreter, with given options.

INPUT:

  • options - string; passed when starting mwrank. The format is q pprecision vverbosity bhlim_q xnaux chlim_c l t o s d]
class sage.interfaces.mwrank.Mwrank_class(options='', server=None, server_tmpdir=None)

Bases: sage.interfaces.expect.Expect

Interface to the Mwrank interpreter.

console()
eval(*args, **kwds)

Send a line of input to mwrank, then when it finishes return everything that mwrank output.

NOTE: If a RuntimeError exception is raised, then the mwrank interface is restarted and the command is retried once.

EXAMPLES:
sage: mwrank.eval(‘12 3 4 5 6’) ‘Curve [12,3,4,5,6] :...’
quit(verbose=False)

Quit the mwrank process using kill -9 (so exit doesn’t dump core, etc.).

INPUT:
verbose – ignored
EXAMPLES:
sage: m = Mwrank() sage: e = m(‘1 2 3 4 5’) sage: m.quit()
sage.interfaces.mwrank.mwrank_console()

Previous topic

Interface to Mathematica

Next topic

Interface to Octave

This Page