in reply to Perl and maths

So you want symbolic math? Then you might want to look into Math::Symbolic. Seems pretty promising, although I myself have never tried it. For me, Mathematica from Wolfram Research proved to be unbeatable, although it is a commercial software...

rg0now