Changeset 7731:26e90216c47d
- Timestamp:
- 12/15/07 05:39:17 (5 years ago)
- Branch:
- default
- Location:
- sage
- Files:
-
- 2 edited
-
calculus/calculus.py (modified) (7 diffs)
-
interfaces/maxima.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sage/calculus/calculus.py
r7730 r7731 9 9 10 10 EXAMPLES: 11 12 11 The basic units of the calculus package are symbolic expressions 13 12 which are elements of the symbolic expression ring (SR). There are … … 142 141 sage: float(z) 143 142 4.6467837624329356 143 144 145 We test pickling: 146 sage: x, y = var('x,y') 147 sage: f = -sqrt(pi)*(x^3 + sin(x/cos(y))) 148 sage: bool(loads(dumps(f)) == f) 149 True 144 150 145 151 COERCION EXAMPLES: … … 185 191 186 192 TESTS: 187 We test pickling:188 sage: f = -sqrt(pi)*(x^3 + sin(x/cos(y)))189 sage: bool(loads(dumps(f)) == f)190 True191 193 192 194 Substitution: … … 203 205 sqrt(2.000000000000000e-6*k + 12) 204 206 sage: sqrt(c^3) 205 (2.000000000000000e-6*k + 12)^(3/2)207 sqrt((2.000000000000000e-6*k + 12)^3) 206 208 207 209 The symbolic Calculus package uses its own copy of Maxima for … … 233 235 is different than the one in the interactive interpreter. 234 236 237 235 238 """ 236 239 … … 261 264 # The calculus package uses its own copy of maxima, which is 262 265 # separate from the default system-wide version. 263 maxima = Maxima( )266 maxima = Maxima(init_code = ['display2d:false; domain: complex;']) 264 267 265 268 from sage.misc.sage_eval import sage_eval … … 6448 6451 syms_default = dict(syms_cur) 6449 6452 6450 -
sage/interfaces/maxima.py
r7518 r7731 378 378 return Expect.__call__(self, x) 379 379 380 def __init__(self, script_subdirectory=None, logfile=None, server=None): 380 def __init__(self, script_subdirectory=None, logfile=None, server=None, 381 init_code = None): 381 382 """ 382 383 Create an instance of the Maxima interpreter. … … 389 390 if not os.path.exists(STARTUP): 390 391 raise RuntimeError, 'You must get the file local/bin/sage-maxima.lisp' 392 if init_code is None: 393 init_code = ['display2d : false'] # no ascii art output 391 394 Expect.__init__(self, 392 395 name = 'maxima', … … 397 400 restart_on_ctrlc = False, 398 401 verbose_start = False, 399 init_code = ['display2d : false', # no ascii art output 400 #'load("mactex-utilities")' # latex instead of plain tex from tex command (broken in maxima-5.11.0!) 401 ], 402 init_code = init_code, 402 403 logfile = logfile, 403 404 eval_using_file_cutoff=eval_using_file_cutoff)
Note: See TracChangeset
for help on using the changeset viewer.
