The Dow Jones industrial average rallied back from a triple-digit deficit in early trading to finish up 58 points at 10,216.86.
Economic news indicated that the U.S. economy is still chugging along. The closely watched Consumer Price Index, a measure of inflation, rose 0.1 percent in March, in line with analysts' expectations and below a 0.3 percent jump in February.
A report on U.S. industrial production also signaled a relatively strong economy. U.S. industrial output rose 0.4 percent in March, according to a Federal Reserve report, compared with a 0.4 percent dip in February. Analysts had expected output to fall by 0.2 percent.
Although the data indicated that the economy was relatively stable, it left investors unsure of how the Federal Reserve might respond with changes to interest rates.
"It's good news the market was able to recover, but we still have a lot of earnings reports to get through," Charles Reinhard, senior investment strategist at Lehman Brothers told Reuters. "By the end of this week, half of the companies of the Dow will have reported earnings, and investors will have a better idea of what is ahead."
Shares of Cisco Systems trimmed 55 cents to $16.65 Tuesday after the company warned Monday evening that it would miss third-quarter estimates. Although Cisco said it would eventually recover from a slowing economy, analysts debated whether it would ever regain its former glory.
Among other network-equipment vendors, Nortel Networks lost 6 cents to $15.19; Lucent Technologies shed 25 cents to $7.15, and 3Com added 34 cents to finish at $4.89.
America Online Time Warner shares moved up 59 cents to $43.90 ahead of Wednesday's earnings report. Yahoo fell 31 cents to $17.31 after naming former Warner Brothers executive Terry Semel as its new chairman and chief executive officer.
Amazon.com and eBay gained 71 cents and $2.17 a share, respectively. CMGI dipped 6 cents to $2.45.
High-speed Internet provider Excite@Home, off 80 cents to $4.07, warned that it anticipates lower-than-expected first-quarter and full-year revenues because of weak advertising sales.
Among widely held PC stocks, Dell Computer lost 81 cents to $26.30; Compaq Computer rose 35 cents to $18.33; Gateway shed 19 cents to $15.46, and Apple Computer finished off $1.04 to $20.40.
Shares of software giant Computer Associates International shot up $4.31 to $33.90 as the software company bucked the trend of depressing news and told analysts it would report stronger-than-expected results for its fourth quarter.
Microsoft picked up 69 cents to $61.48. Oracle inched up 26 cents to $16.22, and Sun Microsystems finished off 30 cents to $16.04.
After reporting mediocre first-quarter results, Sprint, down $1.37 to $22.04, said during a conference call Tuesday that its second-quarter and full-year results are likely to miss estimates. Its wireless division, Sprint PCS, up $1.73 to $24.73, also reported results.
Intel lost 24 cents to $26.06. Advanced Micro Devices fell 50 cents to $23, and IBM, which will report its first-quarter results Wednesday, closed up $2.95 to $99.70.
Staff and Reuters contributed to this report.