Mathomatic is a portable, general purpose CAS (Computer Algebra System) written entirely in C. This is a console mode application that does symbolic math and quick calculations. It compiles and runs under any operating system with a C compiler. There are no dependencies other than the standard C libraries. Mathomatic has been under development since 1986 and now stands at 20,000 lines of code (including comments).