The Secretary shall provide such regulations as may be necessary or appropriate to carry out the provisions of this section and section
960, including provisions which provide for the separate application of this section and section
960 to reflect the separate application of section
904 to separate types of income and loss.