Ronan Lamy wrote:
> Le mercredi 16 février 2011 à 22:24 -0800, Ondrej Certik a écrit :
>> 2) NumPy array()
>> 
>> So that you can use syntax like:
>> 
>> xdata = array([1, 2, 3, 4, 5])
>> ydata = xdata ** 2
>> data2 = array([xdata, 1.5 * ydata])
>> 
>> which just works in Mathematica (it's in the core language).
>> 
> 
> I don't really see the point of having this in sympy. Which actual
> problems does it solve?

It's just sugar, and I think that's what is meant by "it just works". I'm 
guessing the above means the following in python:

    ydata = [xi**2 for xi in xdata]
    data2 = zip(xdata, [yi*1.5 for yi in ydata])


/c

-- 
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