Algebrite icon indicating copy to clipboard operation
Algebrite copied to clipboard

Simplify hanging

Open thunderkid opened this issue 4 years ago • 3 comments

In 1.2.1, running simplify on this: a - a * 5 * ( 1 - a + b ) * ( - 1/2 + a - b + a * b - 1/2 * a ^ 2 - 1/2 * b ^ 2 ) ^ ( - 1 ) / ( 5 * ( 1 - a + b ) * ( - 1/2 + a - b + a * b - 1/2 * a ^ 2 - 1/2 * b ^ 2 ) ^ ( - 1 ) ) Just hangs. Similarly, going to the algebrite.org site and trying simplify(a - a * 5 * ( 1 - a + b ) * ( - 1/2 + a - b + a * b - 1/2 * a ^ 2 - 1/2 * b ^ 2 ) ^ ( - 1 ) / ( 5 * ( 1 - a + b ) * ( - 1/2 + a - b + a * b - 1/2 * a ^ 2 - 1/2 * b ^ 2 ) ^ ( - 1 ) )) also causes it to hang. There are probably simpler examples.

thunderkid avatar Sep 01 '20 01:09 thunderkid

The brackets don't match in those examples - intentional?

murkle avatar Sep 01 '20 12:09 murkle

@murkle: No, just a cut-and-paste typo. Thanks for the catch. I've updated the issue. It still hangs.

thunderkid avatar Sep 01 '20 15:09 thunderkid

If anyone could provide any/some/all of the following:

  1. smallest example?
  2. exact commit that made things worse?
  3. something like a test set of small/mixed cases that I can use as test?
  4. any hints as to what might be going on?

then I can fix this quicker.

davidedc avatar Apr 06 '21 20:04 davidedc