[sympy] Rational with Symbol

2017-10-04 Thread Nico Schlömer
I have a function that takes in an integer value and returns a symbolic fraction of it, e.g., ``` def r(n): return sympy.Rational(n, 261) ``` I would like to be able to provide integers and sympy.Symbols alike, but the latter fails with ``` TypeError: invalid input: n ``` -- Right, one can si

[sympy] Re: Rational with Symbol

2017-10-04 Thread Kalevi Suominen
On Wednesday, October 4, 2017 at 12:04:43 PM UTC+3, Nico Schlömer wrote: > > I have a function that takes in an integer value and returns a symbolic > fraction of it, e.g., > ``` > def r(n): > return sympy.Rational(n, 261) > ``` > I would like to be able to provide integers and sympy.Symbols

[sympy] Status of Rubi implementation for Rubi?

2017-10-04 Thread Robert Dodier
Hi, I see there's been a lot of messages about Rubi for SymPy, but I haven't been able to figure out how it turned out. Can someone briefly summarize the status of the Rubi implementation for SymPy and maybe point me to the code? The reason I ask is that a Rubi implementation for Maxima has bee

[sympy] Re: Status of Rubi implementation for SymPy?

2017-10-04 Thread Robert Dodier
Argh, I mean "for SymPy", of course. On Wednesday, October 4, 2017 at 10:00:25 AM UTC-7, Robert Dodier wrote: > > Hi, I see there's been a lot of messages about Rubi for SymPy, but I > haven't been able to figure out how it turned out. Can someone briefly > summarize the status of the Rubi imple

[sympy] Re: Status of Rubi implementation for SymPy?

2017-10-04 Thread Francesco Bonazzi
Hi, the code for RUBI is here: https://github.com/sympy/sympy/tree/master/sympy/integrals/rubi We have been using MatchPy: https://github.com/HPAC/matchpy MatchPy provides an associative-commutative pattern matcher. Unfortunately it only supports Python 3.6. We also have implementations for RU