I wanted the inverse logarithmic intgral, so I typed
InverseFunction[LogIntegral]
and received the expected symbolic answer. But when I try to integrate it or even evaluate it it fails. Is there some way to sweet-talk Mathematica into computing this function?
Edit: I was asked for how it fails, here's an example.
NIntegrate[n/(InverseFunction[LogIntegral][n])^2, {n, 10^7, 10^9}]
yields
NIntegrate::inumr : The integrand (...) has evaluated to non-numerical values for all sampling points in the region with boundaries {{10000000,1000000000}}.
InverseFunction[LogIntegral][4]
yieldsRoot[{-4 + LogIntegral[#1] &, 5.60927669305089035535879233715}]
. When integrating one should expect that in general there is no closed form exprssion, however e.g.NIntegrate[InverseFunction[LogIntegra l][x], {x, 2, 10}]
yields quite resonably82.0804
. Perhaps you should remember Inverting a function in a certain region $\endgroup$NIntegrate::inumr
error. I've edited in code. $\endgroup$In[138]:= f[x_?NumberQ] := y /. FindRoot[LogIntegral[y] == x, {y, 2}]; NIntegrate[n/(f[n])^2, {n, 10^7, 10^9}] Out[139]= 1.249875*10^17
$\endgroup$