original_docstring: Gets expected XC energy density from unpolarized rho and derivatives.
docstring: Gets expected XC energy density from unpolarized rho and derivatives.
docstring_tokens: Gets expected XC energy density from unpolarized rho and derivatives .
code: def _get_expected_e_xc_unpolarized(rho_and_derivs, xc_name):
    """Gets expected XC energy density from unpolarized rho and derivatives."""
    rho, grad_x, grad_y, grad_z, _, tau = rho_and_derivs
    sigma = grad_x ** 2 + grad_y ** 2 + grad_z ** 2
    if xc_name == 'B97':
      return (gga.e_x_b97_unpolarized(rho, sigma)
              + gga.e_c_b97_unpolarized(rho, sigma))
    elif xc_name == 'wB97M-V':
      return mgga.e_xc_wb97mv_unpolarized(rho, sigma, tau)
    else:
      raise ValueError
code_tokens: def _get_expected_e_xc_unpolarized ( rho_and_derivs , xc_name ) : rho , grad_x , grad_y , grad_z , _ , tau = rho_and_derivs sigma = grad_x ** 2 + grad_y ** 2 + grad_z ** 2 if xc_name == 'B97' : return ( gga . e_x_b97_unpolarized ( rho , sigma ) + gga . e_c_b97_unpolarized ( rho , sigma ) ) elif xc_name == 'wB97M-V' : return mgga . e_xc_wb97mv_unpolarized ( rho , sigma , tau ) else : raise ValueError
short_docstring: Gets expected XC energy density from unpolarized rho and derivatives.
short_docstring_tokens: Gets expected XC energy density from unpolarized rho and derivatives .
comment: """Gets expected XC energy density from unpolarized rho and derivatives."""