4
$\begingroup$

plot

I am having trouble achieving this effect with on the x-axis. Does anybody have an idea how I can achieve this effect?

$\endgroup$
  • 2
    $\begingroup$ As a slight correction to kglr's comment: the "number theory" version of the logarithmic integral is expressed as LogIntegral[x] - LogIntegral[2]. $\endgroup$ – J. M. will be back soon Mar 9 at 0:02
  • $\begingroup$ Welcome to Mathematica.SE, Kanye! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Take the tour and check the faqs! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! $\endgroup$ – Chris K Mar 9 at 8:36
10
$\begingroup$
LogLinearPlot[{PrimePi[x]/(LogIntegral[x]-LogIntegral[2]), 
  PrimePi[x]/(x/Log[x])}, {x, 2, 10000000}, GridLines -> {None, {1}}]

enter image description here

Thanks: @J.M.iscomputer-less for the LogIntegral[2] correction.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.