# 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
|
|
193 | 193 | """ |
194 | 194 | def __init__(self, name='axiom', command='axiom -nox -noclef', |
195 | 195 | script_subdirectory=None, logfile=None, |
196 | | server=None, server_tmpdir=None): |
| 196 | server=None, server_tmpdir=None, |
| 197 | init_code=[')lisp (si::readline-off)']): |
197 | 198 | """ |
198 | 199 | Create an instance of the Axiom interpreter. |
199 | 200 | |
… |
… |
|
215 | 216 | server_tmpdir=server_tmpdir, |
216 | 217 | restart_on_ctrlc = False, |
217 | 218 | verbose_start = False, |
218 | | #init_code = [')lisp (si::readline-off)'], |
| 219 | init_code = init_code, |
219 | 220 | logfile = logfile, |
220 | 221 | eval_using_file_cutoff=eval_using_file_cutoff) |
221 | 222 | self._prompt_wait = self._prompt |
diff -r c973b53048b9 -r 1ba7d36a9a87 sage/interfaces/fricas.py
a
|
b
|
|
32 | 32 | sage: a = fricas(3) * fricas(5); a # optional - fricas |
33 | 33 | 15 |
34 | 34 | |
35 | | The type of a is FriCASElement, i.e., an element of the axiom |
| 35 | The type of a is FriCASElement, i.e., an element of the FriCAS |
36 | 36 | interpreter. |
37 | 37 | |
38 | 38 | :: |
… |
… |
|
75 | 75 | 7 |
76 | 76 | |
77 | 77 | The ``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 |
| 78 | FriCAS and returns the result as a string. This is exact as if we |
| 79 | typed in the given line of code to FriCAS; the return value is what |
80 | 80 | FriCAS would print out. |
81 | 81 | |
82 | 82 | :: |
… |
… |
|
265 | 265 | """ |
266 | 266 | return isinstance(x, FriCASElement) |
267 | 267 | |
268 | | fricas = FriCAS(name='fricas', command='fricas -nox -noclef') |
| 268 | fricas = FriCAS(name='fricas', command='fricas -nox -noclef', init_code=[]) |
269 | 269 | |
270 | 270 | def reduce_load_fricas(): |
271 | 271 | """ |