数式処理システムなら MAXIMAにしなはれ。
http://science.2ch.net/test/read.cgi/sim/1011102458/
これが使いこなせれば 商用のシステムはいらんよ。
リスト処理もらくらく。