#5607: confusing syntax for creating symbolic functions
----------------------+-----------------------------------------------------
Reporter: burcin | Owner: burcin
Type: defect | Status: closed
Priority: major | Milestone: sage-duplicate/invalid/wontfix
Component: calculus | Resolution: invalid
Keywords: |
----------------------+-----------------------------------------------------
Changes (by mhansen):
* status: new => closed
* resolution: => invalid
* milestone: sage-4.0.1 => sage-duplicate/invalid/wontfix
Comment:
In 4.0, we raise an error for this type of thing.
{{{
----------------------------------------------------------------------
| Sage Version 4.0.1.rc1, Release Date: 2009-06-04 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: sage: g(x)=sin
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/home/mhansen/.sage/temp/sage.math.washington.edu/31677/_home_mhansen__sage_init_sage_0.py
in <module>()
/scratch/mhansen/release/4.0.1/rc2/sage-4.0.1.rc2/local/lib/python2.5
/site-packages/sage/calculus/all.pyc in symbolic_expression(x)
63 return x._symbolic_(SR)
64 else:
---> 65 return SR(x)
66
67 import desolvers
/scratch/mhansen/release/4.0.1/rc2/sage-4.0.1.rc2/local/lib/python2.5
/site-packages/sage/structure/parent.so in
sage.structure.parent.Parent.__call__ (sage/structure/parent.c:4130)()
/scratch/mhansen/release/4.0.1/rc2/sage-4.0.1.rc2/local/lib/python2.5
/site-packages/sage/structure/coerce_maps.so in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_
(sage/structure/coerce_maps.c:3058)()
/scratch/mhansen/release/4.0.1/rc2/sage-4.0.1.rc2/local/lib/python2.5
/site-packages/sage/structure/coerce_maps.so in
sage.structure.coerce_maps._call_ (sage/structure/coerce_maps.c:2949)()
/scratch/mhansen/release/4.0.1/rc2/sage-4.0.1.rc2/local/lib/python2.5
/site-packages/sage/symbolic/ring.so in
sage.symbolic.ring.SymbolicRing._element_constructor_
(sage/symbolic/ring.cpp:4416)()
TypeError:
sage: g(x) = sin(x)
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5607#comment:1>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---