I just tried to coding that. but I can not find out how to make double sigma with exception case.
j=/=i means that if j is equal to i, pass that case.
This is original equation for phi.
I tried like this. is it right direction?