Basic problem
This is the briefest working example I have found of the problem.
Pick[{2 E, 2 E }, {0, 2 E}, 0]
{2 E, 1}
I expected the result to be
{2 E}
Further discussion
Multipliers are necessary in the arguments, but they can symbolic and different. I read this that Times
is somehow involved.
Pick[{2 E, 2 E }, {0, E}, 0]
{2 E}
Pick[{2 E, E }, {0, 2 E}, 0]
{2 E}
Pick[{2 E, n E }, {0, k E}, 0]
{2 E, 1}
The named constants can apparently occur in any mixture.
Pick[{2 E, 2 Degree }, {0, 2 Glaisher}, 0]
{2 E, 1}
Questions
There is no 1 in any of the 1st arguments given to Pick in this question, and the 2nd item in the 2nd arguments never matches zero, so where is the 1 in the result coming from?
Should this question be tagged with bugs?
Pick[{2 x, 3 }, {y^ z, 0}, 0]
suggests the issue is more pervasive than named constants. $\endgroup$