#7377: Symbolic Ring to Maxima via EclObject
----------------------------------------------------------------------+-----
Reporter: nbruin |
Owner: nbruin
Type: enhancement |
Status: needs_work
Priority: major |
Milestone: sage-feature
Component: symbolics |
Keywords:
Author: Nils Bruin, Jean-Pierre Flori |
Upstream: N/A
Reviewer: Jean-Pierre Flori, Francois Bissey, Karl-Dieter Crisan |
Merged:
Work_issues: |
----------------------------------------------------------------------+-----
Changes (by newvalueoldvalue):
* reviewer: => Jean-Pierre Flori, Francois Bissey, Karl-Dieter Crisan
* author: Nils Bruin => Nils Bruin, Jean-Pierre Flori
Comment:
> {{{
> sage -t -force_lib "devel/sage/sage/symbolic/function_factory.py"
> **********************************************************************
> File "/usr/share/sage/devel/sage/sage/symbolic/function_factory.py",
line 174:
> sage: g
> Expected:
> b*D[0](cr)(a)
> Got:
> b*del(a)
> **********************************************************************
> File "/usr/share/sage/devel/sage/sage/symbolic/function_factory.py",
line 184:
> sage: g.substitute_function(cr, cos)
> Expected:
> -b*sin(a)
> Got:
> b*del(a)
> **********************************************************************
> File "/usr/share/sage/devel/sage/sage/symbolic/function_factory.py",
line 187:
> sage: g.substitute_function(cr, (sin(x) + cos(x)).function(x))
> Expected:
> -(sin(a) - cos(a))*b
> Got:
> b*del(a)
> **********************************************************************
Hmm, that is very interesting. I am not quite sure what this `del` thing
is, but I remember seeing something about it on the Maxima list...
> File "/usr/share/sage/devel/sage/sage/interfaces/maxima.py", line 426:
> sage: t.limit(Ax=0, dir='+')
> return l.sage()
> File "element.pyx", line 327, in
sage.structure.element.Element.__getattr__ (sage/structure/element.c:2715)
> File "parent.pyx", line 277, in
sage.structure.parent.getattr_from_other_class
(sage/structure/parent.c:2841)
> File "parent.pyx", line 175, in
sage.structure.parent.raise_attribute_error (sage/structure/parent.c:2636)
> AttributeError: 'sage.rings.integer.Integer' object has no attribute
'sage'
This must be us using Sage Integers somehow at the library level where
before they were coming back from Maxima?
> **********************************************************************
> File "/usr/share/sage/devel/sage/sage/interfaces/maxima.py", line 608:
> sage: integrate(1/(x^3 *(a+b*x)^(1/3)),x)
> Expected:
> Traceback (most recent call last):
> ...
> TypeError: Computation failed since Maxima requested additional
constraints (try the command 'assume(a>0)' before integral or limit
evaluation, for example):
> Is a positive or negative?
Notice we expect a TypeError.
> RuntimeError: ECL says: Maxima asks:?mtext("Is ",a," positive or
negative?")
Now we just get a different error. I assume that the new code interface
has something about ECL asking. We would want to make sure that this
still is turned into the helpful type of message we have here, but that
should be easy (if tedious) to make work.
Thank you for beginning this testing!
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7377#comment:28>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en.