Basic Examples (5)
Basic Examples
(5)
Compute :
θ(30)
In[146]:=
Out[146]=
Log[2]+Log[3]+Log[5]+Log[7]+Log[11]+Log[13]+Log[17]+Log[19]+Log[23]+Log[29]
———
Obtain a decimal approximation:
In[147]:=
Out[147]=
22.5904
———
Plot from 0 to 30:
θ(x)
In[148]:=
Plot[x],{x,0,30}
Out[148]=
———
Compare , and :
x
θ(x)
|x-θ(x)|
In[149]:=
Plotx,[x],Absx-[x],{x,0,30},PlotLegends{"x","θ(x)","|x-θ(x)|"}
Out[149]=
———
Plot the ratio :
θ(x)
x
In[150]:=
Plot[x]x,{x,0,100}
Out[150]=