Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

apply map in multiple dimension

I have a this list

ver1=[(0.00,0.50,0.75),(0.00,−0.50,0.75),(0.50,0.75,0.00),(0.50,−0.75,0.00)]

I want apply the function f(x,y, z) say 0.3*ver[0][0]+ 0.7*ver[1][0]+ 0.2*ver[2][0] to each 3-tuple of this function. I know that map do it but the exemples are for for only one variable not for 3.

I have tried to transform ver1 in matrix but after I do not know how to proceed. Perhaps it is not possible ?