Skip to content

Commit 203bee5

Browse files
Merge pull request #39 from ChrisRackauckas-Claude/docs-update-contributing
Update contributing docs with info about rules branch
2 parents de3c082 + 6349bcf commit 203bee5

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

docs/src/manual/contributing.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
- [Contributing to improving RuleBasedMethod](#contributing-to-improving-rulebasedmethod)
1+
# Contributing
2+
3+
We welcome contributions!
4+
5+
Below there are detailed info on how to contribute to the translation of new rules from the Mathematica [RUBI](https://rulebasedintegration.org/) package, or translation of solved integrals to use as tests, from the same package.
6+
7+
- [Contributing to RuleBasedMethod](#contributing-to-rulebasedmethod)
28
- [Common problems when translating rules](#common-problems-when-translating-rules)
39
- [function not translated](#function-not-translated)
410
- [Sum function translation](#sum-function-translation)
@@ -13,10 +19,10 @@
1319
- [end](#end)
1420
- [Adding Testsuites](#adding-testsuites)
1521

16-
# Contributing to improving RuleBasedMethod
22+
# Contributing to translating new rules for RuleBasedMethod
1723

18-
In this repo there is also some software that serves the sole purpose of helping with the translation of rules from Mathematica syntax, and not for the actual package working. The important ones are:
19-
- translator_of_rules.jl is a script that with regex and other string manipulations translates from Mathematica syntax to julia syntax
24+
In the github repo of the package there is also some software that serves the sole purpose of helping with the translation of rules from Mathematica syntax, and not for the actual package working. The important ones are:
25+
- translator_of_rules.jl is a script that with regex and other string manipulations translates from Mathematica syntax to julia syntax (see "houw to use it" section later)
2026
- translator_of_testset.jl is a script that translates the testsets into julia syntax (much simpler than translator_of_rules.jl)
2127
- `reload_rules` function in rules_loader.jl. When developing the package using Revise is not enough because rules are defined with a macro. So this function reloads rules from a specific .jl file or from all files if called without arguments.
2228

@@ -75,10 +81,11 @@ This script is used to translate integration rules from Mathematica syntax
7581
to julia Syntax.
7682

7783
### How to use it
84+
In the branch `rules` of the github repo of the package there are all the Mathematica files containing the untranslated rules already in the correct folders in this repo, so that you can use the translator script like this:
7885
``` bash
7986
julia src/translator_of_rules.jl "src/rules/4 Trig functions/4.1 Sine/4.1.8 trig^m (a+b cos^p+c sin^q)^n.m"
8087
```
81-
and will produce the julia file at the path `src/rules/4 Trig functions/4.1 Sine/4.1.8 trig^m (a+b cos^p+c sin^q)^n.jl`
88+
this will produce the julia file at the path `src/rules/4 Trig functions/4.1 Sine/4.1.8 trig^m (a+b cos^p+c sin^q)^n.jl`
8289

8390
### How it works internally (useful to know if you have to debug it)
8491
It processes line per line, so the integration rule must be all on only one
@@ -170,4 +177,4 @@ finally the rule is placed in a tuple (index, rule), and all the
170177
tuples are put into a array, ready to be included by load_rules
171178

172179
## Adding Testsuites
173-
There is a test suite of 27585 solved integrals taken from the RUBI package, in the folders `test/test_files/0 Independent test suites` (1796 tests) and `test/test_files/1 Algebraic functions` (25798 tests). But more test can be translated from the [RUBI testsuite](https://rulebasedintegration.org/testProblems.html). In [this](https://github.com/Bumblebee00/SymbolicIntegration.jl?tab=readme-ov-file#testing) repo there are the tests still in Mathematica syntax and a script to translate them to julia.
180+
There is a test suite of 27585 solved integrals taken from the RUBI package, in the folders `test/test_files/0 Independent test suites` (1796 tests) and `test/test_files/1 Algebraic functions` (25798 tests). But more test can be translated from the [RUBI testsuite](https://rulebasedintegration.org/testProblems.html). In the branch `rules` of this repo there are the tests still in Mathematica syntax and a script to translate them to julia.

0 commit comments

Comments
 (0)