Ashish Kumar Gaurav
Ashish Kumar Gaurav
```python rubi_integrate(x**4*sqrt(a + b*x**2),x) ```` It results into a recursion error. Should I show the complete error message ?
``` RecursionError Traceback (most recent call last) in () ----> 1 rubi_integrate(x**4*sqrt(a + b*x**2),x) ~/sympy/sympy/integrals/rubi/rubi.py in rubi_integrate(expr, var, showsteps) 203 return S(expr)*var 204 --> 205 result = rubi.replace(Integral(expr, var)) 206...
Last year you suggested to use multilple macthers for cases to handle multiple rules > And yes, the order in which rules are applied is not really deterministic. If you...
@wheerd , For example I have these list of rules: ``` pattern1 = Pattern(...........) rule1 = ReplacementRule(pattern1, replacement1) rubi.add(rule1) pattern2 = Pattern(...........) rule2 = ReplacementRule(pattern2, replacement2) rubi.add(rule2) pattern3 = Pattern(...........)...
Actually I have a lot of rules (~10, 000) . When an expression matches to multiple(2-3) rules, we want to follow a order.(order is known to us). If you want...
https://github.com/ashishkg0022/rubi-structure/tree/master/way_2 Here there is sample code `rules` contain all replacementRules along with pattern. We are loading them in `rubi.py` . We are running `rubi_integrate` of rubi.py then . In rules...
Yes. Is there any way to do it ?
Also `replace_all()` of `matchpy.functions` module maintains an order. But is very slow for large number of rules.
I am running it on python3. Are you using python2 or python3 ?
The issue may be with python 3.