File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ way from within Mathematica
41
41
BuildIntegrationRules[]
42
42
```
43
43
44
- This will extract all rules from the notebooks, zip appropriate sections together in one ` .m ` file and place it to the
44
+ This will extract all rules from the notebooks into ` .m ` files and place them into the
45
45
correct location under ` Rubi/IntegrationRules ` . The created package files are loaded from within ` Rubi.m ` with the
46
- ` LoadRules[] ` functions. Again, the order in which the rules are loaded in ` Rubi.m ` is vitally important to get a
46
+ ` LoadRules[] ` functions. Again, the order in which the rules are loaded in ` Rubi.m ` is ** vitally important** to get a
47
47
working Rubi package.
48
48
49
49
### How showing integration steps works
Original file line number Diff line number Diff line change 3
3
(* ::Title:: *)
4
4
(*Rubi (Rule-Based Integrator) Package*)
5
5
6
-
7
6
BeginPackage ["Rubi`" ];
8
7
9
8
Int ::usage = "Int[expn, var] returns the antiderivative (indefinite integral) of <expn> with respect to <var>.\n " <>
61
60
62
61
63
62
$ruleDir = FileNameJoin [{DirectoryName [System ` Private ` $InputFileName ], "IntegrationRules" }];
64
- $rulePackages = FileNames ["*.m" , {FileNameJoin [{DirectoryName [System ` Private ` $InputFileName ], "IntegrationRules" }]}];
65
63
$utilityPackage = FileNameJoin [{DirectoryName [System ` Private ` $InputFileName ], "IntegrationUtilityFunctions.m" }];
66
64
$stepRoutines = FileNameJoin [{DirectoryName [System ` Private ` $InputFileName ], "ShowStepRoutines.m" }];
67
65
$ruleFormatting = FileNameJoin [{DirectoryName [System ` Private ` $InputFileName ], "ShowStepFormatting.m" }];
80
78
81
79
Unprotect [Int ]; Clear [Int ]; Clear [Unintegrable ]; Clear [CannotIntegrate ];
82
80
83
-
81
+ (* The order of loading the rule-files below is crucial to ensure a functional Rubi integrator! *)
84
82
LoadRules [$utilityPackage ];
85
83
LoadRules ["9 Miscellaneous/9.1 Integrand simplification rules" ];
86
84
282
280
];
283
281
LoadRules ["9 Miscellaneous/9.4 Miscellaneous integration rules" ];
284
282
285
-
286
- $RuleCount = Length [DownValues [Int ]];
287
-
288
283
(* Calculate the rule-count directly after all integration rules, because below there are some more rules
289
284
added that are not integration rules*)
290
285
$RuleCount = Length [DownValues [Int ]];
You can’t perform that action at this time.
0 commit comments