My question is just how (dis)functional is RUBI in SymPy right now? Is
there any way someone could be using the RUBI part of SymPy in its
current state? Removing it would break such code if they were.
I just tried
from sympy.integrals.rubi.rubimain import *
rubi_integrate(sin(x), x)
and it took 8 minutes (no joke) to produce -cos(x). I then tried
rubi_integrate(sin(x)*cos(x), x)
and it immediately produced an error "AttributeError: 'NoneType'
object has no attribute 'is_Relational'"
I then did
rubi_integrate(x, x)
it also took 8 minutes, then it produced Integral(0, x), which is
obviously completely wrong!
So based just on that, parts of it don't work at all, and other parts
"work" but are so slow that it's almost unusable (to be fair, the
existing integrators in SymPy can also sometimes be slow, although
generally for much more complicated integrals). The wrong answer is
the most worrying to me. Even if someone is willing to wait 8 minutes,
the integrator shouldn't be producing results that are incorrect.
I'm obviously not really exercising the true capabilities of the
integrator here, but if very simple integrals don't work, that isn't a
good sign for more complicated ones. And given that RUBI is basically
a huge lookup table, how can we be sure of correctness, unless there
is extremely extensive testing. It looks like there are a lot of tests
which are copied from the main RUBI test suite. But are they passing?
Is it even physically possible to tell if every integral takes 8
minutes to run? Is the above integrate(x) example tested, or were
integrals that are "too trivial" overlooked?
If anyone is actually using sympy.integrals.rubi, or even part of it,
please let us know. For now, I can't see how removing it would break
too much user code.
Aaron Meurer
>
> --
> Oscar
>
> --
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sympy+un...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/CAHVvXxSvxpTq6r4yfoy5P5nsFtMtXcq2j3n1s_2mFOoRPDw%3DRw%40mail.gmail.com.