vermaseren / form

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

Superfluous parentheses by PrintTable #238

Open tueda opened 6 years ago

tueda commented 6 years ago

This is mathematically OK, but the PrintTable statement somehow prints superfluous parentheses

CTable sparse,t(1);
S x;
CF f;
Fill t(1) = f(1 + x)^2;
Fill t(2) = f(f(1 + x)^2)^2;
L F1 = t(1);
L F2 = t(2);
PrintTable t;
P;
.end
FORM 4.2.0 (Oct 26 2017, v4.2.0-22-g954024f) 64-bits  Run: Mon Nov 20 19:53:32 2017

Fill t(1) = + ((f((1 + x))))^(2);
Fill t(2) = + ((f((((f((1 + x))))^(2)))))^(2);

   F1 =
      f(1 + x)^2;

   F2 =
      f(f(1 + x)^2)^2;

Compare the PrintTable output with the normal Print output.