$ 0 0 You need to vectorise the 'vector' calculations to get the element by element result - see attached. Alan