compute homo E