[sympy] How to Implement Functional Derivative?

2015-01-05 Thread yueming liu
Hi, I am trying to implement a general inverse problem solvers library by using sympy as an important part of the tool. One of a problem is that I need to compute functional derivative (http://en.wikipedia.org/wiki/Functional_derivative) against some functional. So far, I have tested this p

[sympy] How to Implement Functional Derivative?

2015-01-05 Thread yueming liu
According to the definition, we need the limit of the function when alpha approaches 0. How to implement this on a Function object? from sympy import * from sympy.abc import * from IPython.display import display init_printing(use_latex='mathjax') def func_diff(F, f, df): alpha = Symbol('alpha')