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

$args not expanded for distrib_ #186

Closed
tueda opened this issue May 19, 2017 · 1 comment
Closed

$args not expanded for distrib_ #186

tueda opened this issue May 19, 2017 · 1 comment
Labels
bug Something isn't working

Comments

@tueda
Copy link
Collaborator

tueda commented May 19, 2017

Argument fields seem not to be expanded when distrib_ functions are evaluated:

S x1,...,x4;
CF f;
L F = f(x1,...,x4);
id f(?a$a) = 1;
multiply distrib_(1,1,f,dummy_,$a);
P;
.end

gives

   F =
      f(x1,x2,x3,x4);

Workaround:

S x1,...,x4;
CF f;
CF distrib;
L F = f(x1,...,x4);
id f(?a$a) = 1;
multiply distrib(1,1,f,dummy_,$a) * replace_(distrib,distrib_);
P;
.end
   F =
      f(x1) + f(x2) + f(x3) + f(x4);
@vermaseren
Copy link
Owner

vermaseren commented May 19, 2017 via email

vermaseren added a commit that referenced this issue May 19, 2017
@tueda tueda closed this as completed May 20, 2017
@tueda tueda added the bug Something isn't working label May 20, 2017
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