I could not imagine trying to take notes with a computer in a math heavy subject. I had to use paper for everything during my undergrad in Civil Engineering. However, if you already have a computer with you, record the lecture and review it later.
Just as a partial counterpoint to this and overall agreement with everyone else who responded, I've had success taking realtime notes on my laptop in a math class. It took a bit of practice and I'm sure I can't do it anymore, but it's not insurmountable by any means.
I used latex and made liberal use of keyboard and software macros to do it, and one of the tricks was to realize that if I needed a quick-to-type way to typeset new thing X, I should just pretend I had such an implementation and make up its command on the spot. At my leisure, I could write up a conforming latex command that worked with all the notes I'd taken in realtime.
That said, I've since come to realize that math notes don't help me as much as they seem to help others. I have greater success primarily listening during class and leaning on the textbook as well as online resources outside of class. I do second the use of emacs to handle the latex, but I don't think that realtime rendering is particularly important in a notes setting.
Excellent counterpoint. Keep in mind that I was a Civil Engineering student, not computer science. My abilities to use Latex were little-to-none at the time. I didn't get any exposure to it until I was in grad school and we used it to format journal article submissions.