Open jodavies opened 8 years ago
This is surely a bug. Perhaps the argument without the power is in a short-hand notation in a function argument, which causes the match to fail.
S z,n;
CF f;
L F = f(z);
id f(z^n?) = 1;
Print +s;
.end
Exactly. That is not easy to repair.
Jos
On 17 mrt. 2017, at 10:52, Ben Ruijl notifications@github.com wrote:
This is surely a bug. Perhaps the argument without the power is in a short-hand notation in a function argument, which causes the match to fail.
S z,n; CF f;
L F = f(z); id f(z^n?) = 1;
Print +s; .end — 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/63#issuecomment-287311930, or mute the thread https://github.com/notifications/unsubscribe-auth/AFLxEvu1DRxrHFU9Cpum5Ws5SIvR7Ztcks5rmlfkgaJpZM4Hnc-v.
There is a difference in behaviour in pattern matching powers of a symbol, depending whether it is inside a function argument or not. For eg,
gives
Is this intended? It seems rather inconsistent.
Thanks, Josh.