#17701: diff(f,t) should work even with Function objects
-------------------------------------+-------------------------------------
Reporter: rws | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-7.2
Component: calculus | Resolution:
Keywords: | Merged in:
Authors: Ralf Stephan | Reviewers: Travis Scrimshaw
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/rws/diff_f_t__should_work_even_with_function_objects|
0cecec3ff4c53e8e030311b4b55fc9e7d96a8cda
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by nbruin):
Replying to [comment:9 tscrim]:
> Should we expect this to work?
> {{{
> sage: f = function('f')
> sage: diff(f, x=x)
> }}}
I'd say no. This would be significant feature creep into the interface of
`diff`.
I am a little worried about
{{{
sage: diff(f,x,x)
D[0, 0](f)(x, x) + 2*D[0, 1](f)(x, x) + D[1, 1](f)(x, x)
}}}
where almost certainly a user who would type this would be hoping for
{{{
D[0, 0](f)(x)
}}}
I think the ambiguity in meaning when multiple arguments are given makes
it safer to disallow it altogether.
I wouldn't mind if we wouldn't support this at all, but if we do, I
recommend that we only allow repetition of a single argument variable, and
interpret it as the n-th derivative of a univariate function evaluated at
that argument
--
Ticket URL: <http://trac.sagemath.org/ticket/17701#comment:10>
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.