degrees and radians.
Raymond Hettinger
python at rcn.com
Sun May 5 22:30:32 EDT 2002
>, I wasn't very clear, in the above example, the result I am
> looking for is
>
> >>>a=(1,2)
> >>>b=(2,3)
> >>>a+b
> (3,5)
>
>
> if that makes sense, I don't want to append, I want to add.
>
Then, you want elementwise operations. Take a look at
matfunc.py at http://users.rcn.com/python/download/python.htm
>>> from matfunc import Vec
>>> Vec([1,2]) + Vec([2,3])
[3, 5]
Raymond Hettinger
More information about the Python-list
mailing list