sage -c "vector([1,2,3])^2" returns with a NotImplementedError, when in
other mathematics software, the same expression will operate element-wise.
python:
>>> import numpy; numpy.array([1,2,3])**2
array([1, 4, 9])
octave:
octave:1> [1,2,3].^2
ans = 1 4 9
mathematica:
In[1]:= {1,2,3}^2
Out[1]= {1, 4, 9}
Is there a reason this is not the way sage also implements it?
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-devel/58105a26-4328-1282-2280-661794d03c39%40gmail.com.