Skip to content

Commit

Permalink
Simplify Integrate results.
Browse files Browse the repository at this point in the history
  • Loading branch information
corywalker committed Nov 20, 2018
1 parent 04496b3 commit 1c82bc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions expreduce/resources/calculus.m
Expand Up @@ -65,11 +65,11 @@
!!! warning \"Under development\"
This function is under development, and as such will be incomplete and inaccurate.";
Integrate[a_,{x_Symbol,start_,end_}] :=
ReplaceAll[Integrate[a, x],x->end] - ReplaceAll[Integrate[a, x],x->start];
(ReplaceAll[Integrate[a, x],x->end] - ReplaceAll[Integrate[a, x],x->start]) // Simplify;
Integrate[a_,x_Symbol] := Module[{cleanedA, replaceRules},
replaceRules = genSubscriptReplacements[a];
cleanedA = a /. replaceRules[[1]];
Rubi`Int[cleanedA, x] /. replaceRules[[2]]
(Rubi`Int[cleanedA, x] /. replaceRules[[2]]) // Simplify
];
Attributes[Integrate] = {ReadProtected, Protected};
Tests`Integrate = {
Expand Down

0 comments on commit 1c82bc5

Please sign in to comment.