Allow passing a "parameter exception" to specialize
and have it resolved?
#178
Labels
enhancement
New feature or request
specialize
and have it resolved?
#178
From the book example in PR #104: We have this list of exceptions:
And then we do this:
It would be fantastic if instead one could just write something like this:
Well, ideally one also shouldn't have to write
r.exceptions.exceptions[3]
, but rather something likeexceptions(r)[3]
or so. But that's besides the point, the more powerful automatic inspecialize
is what I am after.To implement it, we can follow the example above: add a new variable with an hitherto unused name, multiply it with the denominator aka modulus. Then take the numerator, and try to "solve" it for one variable (here, I would again start simple: check if we can find a variable which occurs exactly once, as "itself", and then specialize that variable suitably.
The text was updated successfully, but these errors were encountered: