Sure, emacs is an OS [1], you can write any kind of programs for it.
On the other hand, you can do symbolic calculus in Scheme - see, for example, MIT Scheme-based Structure and Interpretation of Classical Mechanics (which, incidentally, is perfectly usable from inside emacs).
[1] http://www.informatimago.com/linux/emacs-on-user-mode-linux....