#6480: .subs_expr() method doesn't work for argument of D derivative operator
-----------------------+----------------------------------------------------
Reporter: gmhossain | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: symbolics | Keywords:
Reviewer: | Author:
Merged: |
-----------------------+----------------------------------------------------
In computing functional derivative, one needs to vary
a functional. For example, in sage-3.4 one can do as follows
{{{
sage: f(x) = function('f',x)
sage: df(x) = function('df',x)
sage: g = f(x).diff(x)
sage: g
diff(f(x), x, 1)
sage: g.subs_expr(f(x)==f(x)+df(x))
diff(f(x) + df(x), x, 1)
}}}
In new symbolics, if I do the same I get
{{{
sage: g
D[0](f)(x)
sage: g.subs_expr(f(x)==f(x)+df(x))
D[0](f)(x)
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6480>
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
-~----------~----~----~----~------~----~------~--~---