Thank you very much by the tip Aaron.... I will keep working on that and
let you know.

One think, is it possible to define a method like __diff__() that tells how
the class should be differentiated in Sympy, like we do for __mul__,
__add__ etc... ?

Saullo


2013/9/5 Aaron Meurer <[email protected]>

> One note about your code, you should use expr.func, not
> expr.__class__. Right now, they are generally the same, but we reserve
> the right to make them differ at some point, in case it becomes
> convenient to make expressions rebuild with something other than their
> literal class.
>
> Aaron Meurer
>
> On Wed, Sep 4, 2013 at 11:26 AM, Saullo Castro <[email protected]>
> wrote:
> > Today I've done this so far.... it works very well for many test cases
> I've
> > played here:
> >
> >
> https://gist.github.com/saullocastro/6433919#file-test_variational_calculus-py
> >
> > Tomorrow or on Friday I will implement the integration by parts which is
> > very typical to get the Euler-Lagrange equations....
> >
> >
> > Thank you for the support!
> > Saullo
> >
> >
> > 2013/9/4 Sergey B Kirpichev <[email protected]>
> >>
> >> On Wed, Sep 04, 2013 at 12:20:55PM +0200, Saullo Castro wrote:
> >> >    in this Issue 3198: implement Euler-Lagrange equations, did you
> >> > implement this kind of operator?
> >>
> >> The left-hand side of Euler-Lagrange equation is a functional
> >> derivative for the functional of some (well known) form.
> >>
> >> > Is this pull request already merged?
> >>
> >> No, AFAIK.  You can check the current status of the pr.
> >>
> >> --
> >> You received this message because you are subscribed to a topic in the
> >> Google Groups "sympy" group.
> >> To unsubscribe from this topic, visit
> >> https://groups.google.com/d/topic/sympy/cvOjJdEWprM/unsubscribe.
> >> To unsubscribe from this group and all its topics, 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/sympy.
> >> For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "sympy" 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/sympy.
> > For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sympy" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sympy/cvOjJdEWprM/unsubscribe.
> To unsubscribe from this group and all its topics, 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/sympy.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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/sympy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to