On Tue, Nov 8, 2011 at 7:15 PM, Roberto Colistete Jr.
<[email protected]> wrote:
>    Hi,
>
>    On SymPy 0.6.7 the 'diff' function works on lists. But on SymPy
> 0.7.1 it doesn't, for example :
>
> In [1]: diff([cos(t), sin(t), exp(t), t)


Are you missing a ] ? This works for me:

In [5]: t = Symbol('t')
In [7]: print diff([cos(t), sin(t), exp(t)], t)
[-sin(t), cos(t), exp(t)]



> ---------------------------------------------------------------------------
> AttributeError                            Traceback (most recent call
> last)
> /home/roberto/<ipython-input-6-14d9fa9d6a32> in <module>()
> ----> 1 diff([cos(t),sin(t),t],t)
>
> /usr/local/lib/python2.6/dist-packages/sympy/core/function.pyc in
> diff(f, *symbols, **kwargs)
>   1104     """
>   1105     kwargs.setdefault('evaluate', True)
> -> 1106     return Derivative(f, *symbols, **kwargs)
>   1107
>   1108 def expand(e, deep=True, modulus=None, power_base=True,
> power_exp=True, \
>
> /usr/local/lib/python2.6/dist-packages/sympy/core/function.pyc in
> __new__(cls, expr, *symbols, **assumptions)
>    672         if evaluate:
>    673             if set(sc[0] for sc in symbol_count
> --> 674                   ).difference(expr.free_symbols):
>    675                 return S.Zero
>    676
>
> AttributeError: 'list' object has no attribute 'free_symbols'
>
>    This is a new feature or a bug ?
>
>    'integrate' works on lists, by the way.
>
>       Thanks in advance,
>
>       Roberto
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sympy" 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/sympy?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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/sympy?hl=en.

Reply via email to