Basic Examples (5)
Basic Examples
(5)
Compute :
ψ(30)
In[117]:=
Out[117]=
4Log[2]+3Log[3]+2Log[5]+Log[7]+Log[11]+Log[13]+Log[17]+Log[19]+Log[23]+Log[29]
———
Obtain a decimal approximation:
In[118]:=
Out[118]=
28.4765
———
Plot from 0 to 30:
ψ(x)
In[119]:=
Plot[x],{x,0,30}
Out[119]=
———
Compare , , and :
x
ψ(x)
|x-ψ(x)|
In[128]:=
Plotx,[x],Absx-[x],{x,0,30},PlotLegends{"x","ψ(x)","|x-ψ(x)|"}
Out[128]=
———
Plot the ratio :
ψ(x)
x
In[121]:=
Plot[x]x,{x,0,100}
Out[121]=