Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extrasymbols: vector argument #607

Open
veretin opened this issue Dec 29, 2024 · 0 comments
Open

extrasymbols: vector argument #607

veretin opened this issue Dec 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@veretin
Copy link

veretin commented Dec 29, 2024

Hallo!

Consider the following code

v k1,k2,k3,p1,p2,p3;
c A;

* feed extrasymbol: 1 -> k1+k2                                                                                         
g ff = A(k1+k2);
argtoextrasymbol tonumber A;
.sort

drop ff;
g ff1 = p1.p2;
g ff2 = p1.p2;

  if ( expression(ff1) ) id p1 = extrasymbol_(1);
  if ( expression(ff2) ) multiply replace_(p1,extrasymbol_(1));

print;
.end

This produces:

   ff1 =
      k1 + k2;

   ff2 =
      k1.p2 + k2.p2;

So the first variant does not work properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants