Skip to content

Commit c3c75bb

Browse files
committed
Improve error handling of Steps, Stats, and Step.
Fixes #19
1 parent e3dbbfe commit c3c75bb

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ integration step.
1414

1515
## Documentation
1616

17-
The main documentation of the Rubi project can be found under [rulebasedintegration.org](https://rulebasedintegration.org).
18-
Certain development specific information about this Mathematica package will be made available in the [Rubi GitHub Wiki](https://github.com/RuleBasedIntegration/Rubi/wiki).
19-
Since the Wiki is at the moment not complete, please visit the [current Rubi website](http://www.apmaths.uwo.ca/~arich/).
20-
17+
The user documentation of the Rubi project can be found under [rulebasedintegration.org](https://rulebasedintegration.org).
2118
For an installation- and usage-guide, please see the [Mathematica Package](https://rulebasedintegration.org/mathematicaPackage.html) section on [rulebasedintegration.org](https://rulebasedintegration.org).
2219

20+
21+
Certain development specific information about this Mathematica package can be found in the [Rubi GitHub Wiki](https://github.com/RuleBasedIntegration/Rubi/wiki).
22+
There, you will also find how you can contribute to the project.
23+
Since the Wiki is at the moment not complete, please also visit the [current Rubi website](http://www.apmaths.uwo.ca/~arich/).
24+
2325
## Repository structure and development
2426

2527
### General

Rubi/PacletInfo.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Paclet[
77
Name -> "Rubi",
8-
Version -> "4.16.0.4",
8+
Version -> "4.16.0.5",
99
MathematicaVersion -> "9+",
1010
Description -> "Package for Rule-based Integration",
1111
Creator -> "Albert D. Rich, Patrick Scheibe",

Rubi/Rubi.m

+6-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@
318318
Options[Steps] = {
319319
RubiPrintInformation -> True
320320
};
321-
Steps[expr_Int, opts : OptionsPattern[]] := Steps[expr, $IterationLimit, opts];
321+
Int::wrngUsage = "Wrong usage of the `1` function. Please use `1`[Int[expr, x]].";
322+
Steps[Int[expr_, x_], opts : OptionsPattern[]] := Steps[Int[expr, x], $IterationLimit, opts];
322323
Steps[Int[expr_, x_], n_Integer, OptionsPattern[]] := Module[{result, steps},
323324
If[$LoadShowSteps =!= True,
324325
Message[Int::noShowSteps];
@@ -341,6 +342,7 @@
341342
{steps, result}
342343
]
343344
] /; Head[x] === Symbol && If[TrueQ[n > 0], True, Message[Steps::negSteps]; False];
345+
Steps[___] := (Message[Int::wrngUsage, Steps]; $Failed);
344346

345347
SetAttributes[Step, {HoldFirst}];
346348
Options[Step] = {
@@ -362,6 +364,8 @@
362364
{step, result}
363365
]
364366
] /; Head[x] === Symbol;
367+
Step[___] := (Message[Int::wrngUsage, Step]; $Failed);
368+
365369

366370
SetAttributes[Stats, {HoldFirst}];
367371
Options[Stats] = {
@@ -382,6 +386,7 @@
382386
}
383387
]
384388
]] /; Head[x] === Symbol;
389+
Stats[___] := (Message[Int::wrngUsage, Stats]; $Failed);
385390

386391

387392

0 commit comments

Comments
 (0)