Subj : Re: Idea - Tensor could be modelled by 2 arrays and a function To : alt.math,alt.sci.physics,comp.programming From : Mr Pixie Date : Wed Aug 24 2005 09:00 pm ah, but input_velocity should be a parameter, so my final code is: function lorentz(input_velocity, A) array[] { ' Lorentz Transformation by Anthony Smales ' input_velocity is the relative velocity from reference frame A to frame B ' Array A is the input array var B[1]: array; ' B is the result array ' lorentz transformation code var gamma = 1/((1-input_velocity^2)^0.5); B[0] = (gamma*(A[0,0])) + ((-input_velocity * gamma)*(A[0,1])); B[1] = ((-input_velocity * gamma)*(A[1,0])) + (gamma*(A[1,1])); B[2] = A[2,2]; B[3] = A[3,3]; return B[]; } My burning question tho is this : 'does this function correctly model all aspects of a tensor?' I am particularly concerned that it correctly models the dual space. .