Ticket #5111: trac_5111b.patch

File trac_5111b.patch, 2.3 KB (added by bpage, 13 years ago)
  • sage/interfaces/axiom.py

    # HG changeset patch
    # User wspage@debian
    # Date 1235605965 18000
    # Node ID 1ba7d36a9a87012a711c447bde09f3d364c746dc
    # Parent  c973b53048b9ded95cde9bb8dc5dccd5097874f1
    Axiom must disable readline (GCL assumed), but FriCAS uses clisp.
    
    diff -r c973b53048b9 -r 1ba7d36a9a87 sage/interfaces/axiom.py
    a b  
    193193    """
    194194    def __init__(self, name='axiom', command='axiom -nox -noclef',
    195195                 script_subdirectory=None, logfile=None,
    196                  server=None, server_tmpdir=None):
     196                 server=None, server_tmpdir=None,
     197                 init_code=[')lisp (si::readline-off)']):
    197198        """
    198199        Create an instance of the Axiom interpreter.
    199200       
     
    215216                        server_tmpdir=server_tmpdir,
    216217                        restart_on_ctrlc = False,
    217218                        verbose_start = False,
    218                         #init_code = [')lisp (si::readline-off)'],
     219                        init_code = init_code,
    219220                        logfile = logfile,
    220221                        eval_using_file_cutoff=eval_using_file_cutoff)
    221222        self._prompt_wait = self._prompt
  • sage/interfaces/fricas.py

    diff -r c973b53048b9 -r 1ba7d36a9a87 sage/interfaces/fricas.py
    a b  
    3232    sage: a = fricas(3) * fricas(5); a        # optional - fricas
    3333    15
    3434
    35 The type of a is FriCASElement, i.e., an element of the axiom
     35The type of a is FriCASElement, i.e., an element of the FriCAS
    3636interpreter.
    3737
    3838::
     
    7575           7
    7676
    7777The ``fricas.eval`` command evaluates an expression in
    78 axiom and returns the result as a string. This is exact as if we
    79 typed in the given line of code to axiom; the return value is what
     78FriCAS and returns the result as a string. This is exact as if we
     79typed in the given line of code to FriCAS; the return value is what
    8080FriCAS would print out.
    8181
    8282::
     
    265265    """
    266266    return isinstance(x, FriCASElement)
    267267
    268 fricas = FriCAS(name='fricas', command='fricas -nox -noclef')
     268fricas = FriCAS(name='fricas', command='fricas -nox -noclef', init_code=[])
    269269
    270270def reduce_load_fricas():
    271271    """