We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e914d5e commit 3b012c6Copy full SHA for 3b012c6
Algebra.js
@@ -2910,11 +2910,17 @@ if((typeof module) !== 'undefined') {
2910
2911
var div = __.div(symbol, d.clone()),
2912
is_factor = div[1].equals(0);
2913
-
+
2914
+ // Break infinite loop for factoring e^t*x-1
2915
+ if((symbol.equals(div[0]) && div[1].equals(0))) {
2916
+ break;
2917
+ }
2918
2919
if(div[0].isConstant()) {
2920
factors.add(div[0]);
2921
break;
2922
}
2923
2924
2925
else
2926
is_factor = false;
@@ -4550,4 +4556,4 @@ if((typeof module) !== 'undefined') {
4550
4556
4551
4557
]);
4552
4558
nerdamer.api();
4553
-})();
4559
+})();
0 commit comments