New answers tagged

4

(1) What AlgebraicRulesData really is, is obsolete.Yes, it is still supported. Or ignored, to be more accurate. As for the copy/paste business, it has an internal validation flag. Those do not survive copying and in the case of AlgebraicRulesData there is no way (or attempt) to revalidate them. Without the flag being set, rule replacement will not handle ...


4

In addition, there is TreatRepeatedEntries which allows for additive assembly as used in How to speed up this SparseArray construction in an answer provided Henrik Schumacher. The core code, please refer to the Q&A of the above link for the full context. MySparseArray[R_Rule, dims_?VectorQ, fun_: Total, background_: 0] := With[{spopt = SystemOptions["...


10

Here's an explanation by example (update below). It's a function that seems to do what Reduce`FreeVariables does. Please let me know if you break it. (* check dependence of x on y * by construction x does not depend on x *) dependsOnQ[x_][y_] := dependsOnQ[x, y]; dependsOnQ[x_, x_] := False; (* b/c we apply Or in the next def *) dependsOnQ[x_, y_List] := ...


Top 50 recent answers are included