Re: regex substituting math-functions

2002-07-29 Thread Kay Bieri
On Mon, 29 Jul 2002, Janek Schleicher wrote: > > > 1.) First of all, I'm unhappy with the '~' I had to plug in so $funcs{$func}~[$1] >would not be > > considered as a ref to an array. Is there a better way to stop Perl from >misinterpreting this? I > > need the []-braces since arguments to func

Re: regex substituting math-functions

2002-07-28 Thread Janek Schleicher
Kay Bieri wrote at Sun, 28 Jul 2002 13:21:44 +0200: > 1.) First of all, I'm unhappy with the '~' I had to plug in so $funcs{$func}~[$1] >would not be > considered as a ref to an array. Is there a better way to stop Perl from >misinterpreting this? I > need the []-braces since arguments to funct

regex substituting math-functions

2002-07-28 Thread Kay Bieri
Hello all I sometimes need to convert mathematical expressions from maple to mathematica in order to compare my results with somebody else's. There are simple functions like 'cos(arg)' which must be convertet to 'Cos[arg]' and a little more involved ones like 'dilog(arg)' which goes to 'PolyLog[2