def updateEofZ2(EofZ2, Eof1mt, EofZX, Eof1mt2, EofX2, L):
    """
	Update value of raw 2nd moment of Z based on Lhood value obtained in that NS iteration
	"""
    crossTerm = 2 * Eof1mt * EofZX * L
    X2Term = Eof1mt2 * EofX2 * L ** 2.0
    return EofZ2 + X2Term + crossTerm
