I noticed that the attached simple test program fails
with a stack
overflow due to infinite recursion in the second EV() call.
Exception in thread "main" java.lang.StackOverflowError
When I run it with some extra instrumentation (printing
rules that are
applied, from HRuleSet.testDownRules()), I see that it
appears to be
applying the rule
to List(1/2), then List(-1/2), and then repeating.
I'll keep looking into this, to nail down exactly
Perhaps some rules don't interact well, or a rule
should be added.
This might also be related to the fact that the
function isn't defined
for x<0, or that the second function has a pole (goes
at x=0. However, even if the function behaves poorly,
we'll want it
to report that problem cleanly, so this is a bug.
As I said, I'm researching this one, but I'm also
reporting it as a
matter of proper practice.
Log in to post a comment.