vermaseren / form

The FORM project for symbolic manipulation of very big expressions
GNU General Public License v3.0
1.14k stars 136 forks source link

Normalize,^() should correctly parse brackets #179

Open jodavies opened 7 years ago

jodavies commented 7 years ago

Hello,

I wrote some code which included

CFunction f;
Local test = f(-2);
*Normalize,^-1, f;
Normalize,^(-1), f;
Print +s;
.end

which yields

   test =
       + f(1)
      ;

Normalize should either interpret the brackets, or give an error, here.

In fact, you can even attempt something like

Normalize,^(a) ...

for a Symbol a, also yielding f(1).

Normalize,^a ...

gives the error a is not a function or a set of functions.

Thanks! Josh.