#13221: Limit should not depend on dummy variable.
----------------------------+----------------------------
       Reporter:  kcrisman  |        Owner:  burcin
           Type:  defect    |       Status:  needs_work
       Priority:  minor     |    Milestone:  sage-pending
      Component:  calculus  |   Resolution:
       Keywords:            |    Merged in:
        Authors:            |    Reviewers:
Report Upstream:  N/A       |  Work issues:
         Branch:            |       Commit:
   Dependencies:            |     Stopgaps:
----------------------------+----------------------------
Changes (by nbruin):

 * status:  needs_review => needs_work
 * milestone:  sage-duplicate/invalid/wontfix => sage-pending


Comment:

 I do get the reported behaviour in 6.5beta
 {{{
 sage: f(x) = x^2
 sage: limit(f,x=1)
 x |--> 1
 }}}
 This is coming from the fact that sage does this transformation (well,
 it's a side-effect of the implementation above):
 {{{
 limit( E.function(t), t=1) ---> E.limit(t=1).function(t)
 }}}
 That transformation really has no merit whatsoever. The thing that's hard
 about this is that the type of `E.function(t)` is just
 `SymbolicExpression`. The callable bit is entirely stored in the parent.

 Another way would be to subclass to CallableSymbolicExpression and
 override things like `limit` and `integral` to produce errors instead (or
 do something useful if there is a reasonable choice).

 Arithmetic on callable expressions in general seems pretty sane:
 {{{
 sage: f(x)=x^2
 sage: g(y)=1+y
 sage: f+g
 (x, y) |--> x^2 + y + 1
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/13221#comment:9>
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/d/optout.

Reply via email to