I am trying to implement following equation using nested for loops and vectorization. But getting two different output. Please let me know for the required correction in vec