#17701: diff(f,t) should work even with Function objects
-------------------------------------+-------------------------------------
       Reporter:  rws                |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.8
      Component:  calculus           |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Ralf Stephan       |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/rws/diff_f_t__should_work_even_with_function_objects|  
0cecec3ff4c53e8e030311b4b55fc9e7d96a8cda
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Description changed by rws:

Old description:

> {{{
> t = var('t')
> sage: f = function('f')
> sage: desolve(diff(f,t) - (f+1)/(t+1), f)
> ...
> TypeError:
> }}}
> The same error can be had with the simple `SR(sin)`, i.e., any function
> object in contrast to the resp. function call, which returns an
> `Expression`.
>
> Since function objects can be used in other context it seems they should
> be part of symbolic expressions too. This ticket however will limit
> itself to giving a better error message in `SR.coerce` and handling
> `Function` objects in `calculus/functional.py:derivative()`.

New description:

 {{{
 t = var('t')
 sage: f = function('f')
 sage: desolve(diff(f,t) - (f+1)/(t+1), f)
 ...
 TypeError:
 }}}
 The same error can be had with the simple `SR(sin)`, i.e., any function
 object in contrast to the resp. function call, which returns an
 `Expression`.

 Since function objects can be used in other context it seems they should
 be part of symbolic expressions too. This ticket however will limit itself
 to giving a better error message in `SR.coerce` and handling `Function`
 objects in `calculus/functional.py:derivative()`.

 See also #15025

--

--
Ticket URL: <http://trac.sagemath.org/ticket/17701#comment:8>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to