The New York stock exchanges closed trading with significant gains on Tuesday. In general, the numerous quarterly reports from large companies made investors optimistic. Soft drink maker Coca-Cola and automobile manufacturer General Motors, among others, performed better than expected.