#15860: inject symbolic functions
-------------------------+-------------------------------------------------
   Reporter:  dkrenn     |            Owner:
       Type:  defect     |           Status:  new
   Priority:  major      |        Milestone:  sage-6.2
  Component:  symbolics  |         Keywords:  symbolic function, inject,
  Merged in:             |  space
  Reviewers:             |          Authors:
Work issues:             |  Report Upstream:  N/A
     Commit:             |           Branch:
   Stopgaps:             |     Dependencies:
-------------------------+-------------------------------------------------
 {{{
 sage: function('A,B')
 (A, B)
 sage: A
 A
 sage: B
 B
 sage: function('C, D')
 (C,  D)
 sage: C
 C
 sage: D
 ---------------------------------------------------------------------------
 NameError                                 Traceback (most recent call
 last)
 <ipython-input-6-57b8d7453841> in <module>()
 ----> 1 D

 NameError: name 'D' is not defined
 }}}
 IMHO {{{function('C, D')}}} should work, i.e., the function {{{D}}} should
 be injected into the workspace.

 The corresponding command with {{{var}}} works:
 {{{
 sage: var('c, d')
 (c, d)
 sage: c
 c
 sage: d
 d
 }}}

 Further, the following works:
 {{{
 sage: C, D = function('C, D')
 sage: C
 C
 sage: D
  D
 }}}

 This might also be related with the additional spacing, which occurs in
 the following:
 {{{
 sage: C, D = function('C, D')
 sage: C(D(x))
 C( D(x))
 }}}
 (the space in {{{C( D(x))}}}, which should also be corrected (removed).

--
Ticket URL: <http://trac.sagemath.org/ticket/15860>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to