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

Sorting terms with different indix names #195

Closed FeelUsM closed 6 years ago

FeelUsM commented 7 years ago

I often have expressions like A(mu,nu)B(mu,nu)+A(nu,mu)B(nu,mu). How to tell form that this is the same term, and how to do form to add this terms?

I ask my question here because my account on forum has not been activated yet.

Thanks, Philipp

vermaseren commented 7 years ago

You can look at the sum statement. You should issue the command sum mu,nu;

Jos

On 8 jun. 2017, at 20:19, Feel notifications@github.com wrote:

I often have expressions like A(mu,nu)B(mu,nu)+A(nu,mu)B(nu,mu). How to tell form that this is the same term, and how to do form to add this terms?

I ask my question here because my account on forum has not been activated yet.

Thanks, Philipp

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vermaseren/form/issues/195, or mute the thread https://github.com/notifications/unsubscribe-auth/AFLxEkXOQjYdcMFH8NgQl9k5haBjvpVvks5sCDsagaJpZM4N0cPk.

tueda commented 7 years ago

A concrete example:

I mu,nu;
CF A,B;
L F = A(mu,nu)*B(mu,nu)+A(nu,mu)*B(nu,mu);
P;
.sort
Sum mu,nu;
P;
.end
FORM 4.1 (Jun  8 2017, v4.1-20131025-351-g31c5798) 64-bits  Run: Thu Jun  8 20:26:08 2017

   F =
      A(mu,nu)*B(mu,nu) + A(nu,mu)*B(nu,mu);

   F =
      2*A(N1_?,N2_?)*B(N1_?,N2_?);