SAN FRANCISCO (Reuters) - Apple Inc posted a quarterly profit that blew past Wall Street forecasts thanks to strong sales of Mac computers and improved margins, sending its shares up more than 3 percent on Tuesday.