Comment #7 on issue 3658 by [email protected]: hydrogen.py very slow
http://code.google.com/p/sympy/issues/detail?id=3658
```
from sympy import var, pprint, Integral, oo, Eq
from sympy.physics.hydrogen import R_nl
var("r a")
(r, a)
i = Integral(R_nl(1, 0, 1, r)**2 * r**2, (r, 0, oo)); i
Integral(4*r**5*exp(-2*r), (r, 0, oo))
i.doit()
15/2
```
The statement ``pprint(Eq(i, i.doit()))`` pretty prints
``-15 + 2*Integral(4*r**5*exp(-2*r), (r, 0, oo)) = 0``
it does not do any useful computation; anyway you are right, it is
``Eq(i, i.doit())`` which takes long time.
So the patch could consist in pretty printing the string
"-15 + 2*Integral(4*r**5*exp(-2*r), (r, 0, oo)) = 0"
without calling ``Eq(i, i.doit())``.
I do not know if there is a problem with ``Relational``; I do not know what
it does.
My point is that since here it does not do anything, its call should be
avoided.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.