Skip to content

Vector in polyratfun vanishes #567

@jodavies

Description

@jodavies

In trying to compare OPITeR to other tensor reduction routines I hit the following (due to an autodeclare, I did not notice that q22 was taken as a vector):

#-

Vector q22;
*Symbol q22;

Vector q2;
Symbol D;
CFunction rat;
PolyRatFun rat;

Local test = q2.q2*rat(-1,D - 2);

Identify q2.q2 = rat(q22,1);

Print +s;
.end

produces

test =
    + rat(0,1)
   ;

which then vanishes after another sort.

Putting a scalar product into rat of course crashes like

ERROR: polynomials and polyratfuns must contain symbols only

This goes at least as far back as FORM 4.1, it is a bit surprising that no one encountered this before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions