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 : Mon Aug 22 2005 08:25 pm > function lorentz(A, B) real, real, real, real; - not sure this would > compile! Anybody know the best way around this? I just realised how to do this! - if the function is returning 4 numbers, then it may as well return an array, so we have: function lorentz(A, B) array[] { dim dx, dy, dz, dt : real; dim C[3]; ' lorentz transformation code C[0] = dx; C[1] = dy; C[2] = dz; C[3] = dt; return C; } .