Skip to content

Commit 0ee9737

Browse files
committed
Minor bug fix in new dummy variable functionality
It was failing when equations were compared using Cancel; now fixed.
1 parent 67e8dbf commit 0ee9737

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎evaluate.m‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@
217217
SemanticMatchQ[answer_Equal, response_Equal,multipleAnswersInterpretation_String] :=
218218
SemanticMatchQ[answer[[1]]-answer[[2]], response[[1]]-response[[2]],multipleAnswersInterpretation]||
219219
SemanticMatchQ[answer[[1]]-answer[[2]], response[[2]]-response[[1]],multipleAnswersInterpretation]||
220-
SemanticMatchQ[Denominator[Cancel[(answer[[1]]-answer[[2]])/(response[[1]]-response[[2]])]],1,multipleAnswersInterpretation]||
221-
SemanticMatchQ[Denominator[Cancel[(response[[1]]-response[[2]])/(answer[[1]]-answer[[2]])]],1,multipleAnswersInterpretation]
220+
SemanticMatchQ[Denominator[Cancel[(answer[[1]]-answer[[2]])/(response[[1]]-response[[2]])/.Integrate[integrand_,{var_,min_,max_}]:>Integrate[integrand/.var->$dummy,{$dummy,min,max}]]],1,multipleAnswersInterpretation]||
221+
SemanticMatchQ[Denominator[Cancel[(response[[1]]-response[[2]])/(answer[[1]]-answer[[2]])/.Integrate[integrand_,{var_,min_,max_}]:>Integrate[integrand/.var->$dummy,{$dummy,min,max}]]],1,multipleAnswersInterpretation]
222222

223223
SemanticMatchQ[answer_Equal, response_,multipleAnswersInterpretation_String] := False
224224

0 commit comments

Comments
 (0)