# apply python's sympy function in mathematica

I recently try this $$\int\frac{\mathop{\rm Si}(x)}x\,dx$$

Mathematica failed to calculate it.

Integrate[SinIntegral[x]/x, x]


Mma 11.3 failed,but 12.0 can do it.

from sympy import *
x = symbols("x")
print(integrate(Si(x)/x, x))


x*hyper((1/2, 1/2), (3/2, 3/2, 3/2), -x**2/4)

So I wanted to use the result in Mma.

I have searched in sympy's document,but still can't find solution.

https://docs.sympy.org/1.0/search.html?q=mathematica&check_keywords=yes&area=default

How can I directly get this function in mathematica?

I saw numpy can be used as follows:(add import numpy as np to the beginning,otherwise it will return wrong)

12.0 will return an object.But I temporaily don't know how to use it.(picture is from others)

• Mathematica 12.0 can solve this integral... So why use SymPy?
– ktm
Jan 7, 2020 at 14:51
• @user6014 because it's useful to put several tools together. Besides,I temporarily use 11.3. Jan 7, 2020 at 15:24
• @user6014 Some users may not have access to Mathematica 12.0 yet either, unfortunately. It can be quite expensive. Jan 7, 2020 at 15:31
• Are you interested in sympy-based solutions that work only in Mathematica 12.0? Mathematica's Python interface became much better in 12.0. Jan 8, 2020 at 8:31
• @Szabolcs ，So it's very interesting. 11.3 can't solve it, but 12.0 can. 11.3 can't interface with python well, but 12.0 can.Seems the solution is to upgrade to 12.0.😂 Jan 8, 2020 at 9:18

Get["Rubi"]
`