Skip to content

Commit

Permalink
Patch for With with a false condition. Full fix needed in the patte…
Browse files Browse the repository at this point in the history
…rn matching library.
  • Loading branch information
aravindh-krishnamoorthy committed Nov 30, 2024
1 parent 319d990 commit f6b8f7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Rubi.m
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@
(* Fix conditions within With -- needs a full fix within the pattern library *)
Unprotect[With];
With[vars_, Verbatim[Condition][expr_, wcond_]] := Condition[With[vars, expr], With[vars, wcond]];
With[vars_, Verbatim[Condition][expr_, wcond_]] := Condition[Indeterminate, Not[With[vars, wcond]]];
Protect[With];

(* ::Section:: *)
Expand Down

0 comments on commit f6b8f7a

Please sign in to comment.