Interface to MuPAD¶
AUTHOR:
- Mike Hansen 
- William Stein 
You must have the optional commercial MuPAD interpreter installed and available as the command code{mupkern} in your PATH in order to use this interface. You do not have to install any optional sage packages.
- class sage.interfaces.mupad.Mupad(maxread=None, script_subdirectory=None, server=None, server_tmpdir=None, logfile=None)[source]¶
- Bases: - ExtraTabCompletion,- Expect- Interface to the MuPAD interpreter. - completions(string, strip=False)[source]¶
- EXAMPLES: - sage: mupad.completions('linal') # optional - mupad ['linalg'] - >>> from sage.all import * >>> mupad.completions('linal') # optional - mupad ['linalg'] 
 - console()[source]¶
- Spawn a new MuPAD command-line session. - EXAMPLES: - sage: mupad.console() #not tested *----* MuPAD Pro 4.0.2 -- The Open Computer Algebra System /| /| *----* | Copyright (c) 1997 - 2007 by SciFace Software | *--|-* All rights reserved. |/ |/ *----* Licensed to: ... - >>> from sage.all import * >>> mupad.console() #not tested *----* MuPAD Pro 4.0.2 -- The Open Computer Algebra System /| /| *----* | Copyright (c) 1997 - 2007 by SciFace Software | *--|-* All rights reserved. |/ |/ *----* Licensed to: ... 
 - cputime(t=None)[source]¶
- EXAMPLES: - sage: t = mupad.cputime() #random, optional - MuPAD 0.11600000000000001 - >>> from sage.all import * >>> t = mupad.cputime() #random, optional - MuPAD 0.11600000000000001 
 - eval(code, strip=True, **kwds)[source]¶
- EXAMPLES: - sage: mupad.eval('2+2') # optional - mupad 4 - >>> from sage.all import * >>> mupad.eval('2+2') # optional - mupad 4 
 - expect()[source]¶
- EXAMPLES: - sage: a = mupad(1) # optional - mupad sage: mupad.expect() # optional - mupad <pexpect.spawn instance at 0x...> - >>> from sage.all import * >>> a = mupad(Integer(1)) # optional - mupad >>> mupad.expect() # optional - mupad <pexpect.spawn instance at 0x...> 
 
- class sage.interfaces.mupad.MupadElement(parent, value, is_name=False, name=None)[source]¶
- Bases: - ExtraTabCompletion,- ExpectElement
- class sage.interfaces.mupad.MupadFunction(parent, name)[source]¶
- Bases: - ExtraTabCompletion,- ExpectFunction
- class sage.interfaces.mupad.MupadFunctionElement(obj, name)[source]¶
- Bases: - ExtraTabCompletion,- FunctionElement
- sage.interfaces.mupad.mupad_console()[source]¶
- Spawn a new MuPAD command-line session. - EXAMPLES: - sage: from sage.interfaces.mupad import mupad_console sage: mupad_console() #not tested *----* MuPAD Pro 4.0.2 -- The Open Computer Algebra System /| /| *----* | Copyright (c) 1997 - 2007 by SciFace Software | *--|-* All rights reserved. |/ |/ *----* Licensed to: ... - >>> from sage.all import * >>> from sage.interfaces.mupad import mupad_console >>> mupad_console() #not tested *----* MuPAD Pro 4.0.2 -- The Open Computer Algebra System /| /| *----* | Copyright (c) 1997 - 2007 by SciFace Software | *--|-* All rights reserved. |/ |/ *----* Licensed to: ...