Well, it also doesn't mean that you necessarily want to match a
"coefficient", though that's usually what it's used for. For example,
something like
(cos(x)*x).match(a*x) -> {a: cos(x)}
I suppose you'd say something like if the user wants that, he can use
exclude=[] to force zero exclusions. There are two issues with that.
The first is that we still have ambiguity if the user defines
exclusions (does wild automatically add exclusions in that case, or do
we assume that if some are explicitly given that the user knows what
he is doing?).
But even then, I'm willing to concede that we could come up with a
reasonable way to do it, and it might be useful. A more important
issues is that this would be a rather subtle API change. Granted, if
people aren't using exclude, their matches are probably
nondeterministic anyway, but it's hard to be sure. Furthermore, since
the use of Wild inside SymPy itself already use exclude almost all the
time, it would be very difficult to judge the extent of such a change
only by our own tests.
Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.