Repeating the steps in the exact order you provided them from a
freshly started Sage does indeed work.

But, after a "reset()" command, it does not work anymore. Try the
following code:

var('x y z')
assume(z+16>0); assume(z<0)
integrate(integrate(1/16,y,-2,(z+2*x+4)/(x+2)),x,(-z-8)/4,2)

reset()

var('x y z')
assume(z+16>0); assume(z<0)
integrate(integrate(1/16,y,-2,(z+2*x+4)/(x+2)),x,(-z-8)/4,2)


Output:
----------------------------------------------------------------------
| Sage Version 4.5.3, Release Date: 2010-09-04                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: var('x y z')
(x, y, z)
sage: assume(z+16>0); assume(z<0)
sage: integrate(integrate(1/16,y,-2,(z+2*x+4)/(x+2)),x,(-z-8)/4,2)
-1/16*z*log(-1/4*z) + 1/16*z*log(4) + 1/16*z + 1
sage:
sage: reset()
sage:
sage: var('x y z')
(x, y, z)
sage: assume(z+16>0); assume(z<0)
sage: integrate(integrate(1/16,y,-2,(z+2*x+4)/(x+2)),x,(-z-8)/4,2
....: )
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (443, 0))

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call
last)

/opt/SAGE/local/lib/python2.6/site-packages/sage/all_cmdline.pyc in
<module>()
[...]
TypeError: Computation failed since Maxima requested additional
constraints (try the command 'assume(z+16>0)' before integral or limit
evaluation, for example):
Is  z+16  positive, negative, or zero?

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to