Image:ChebyshevPsi.png

From Wikipedia, the free encyclopedia

[edit] Summary

Plot of Chebyshev's ψ function, along with the approximation x − log2π. This function can be defined in Mathematica by:

ψ[n_] := Sum[If[PrimeQ[p], Floor[Log[n]/Log[p]] Log[p], 0], {p, 2, n}]
SetAttributes[ψ, Listable]

The above plot was then generated by:

 Plot[{ψ[n], n - Log[2π]}, {n, 0, 50}, 
   AxesLabel -> {n, "ψ(n)"},
   TextStyle -> {FontFamily -> "Times", FontSize -> 16},
   PlotStyle -> {{Hue[0.6], Thickness[0.006]}, {RGBColor[0, 0, 0]}}]

[edit] Licensing

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current17:25, 2 July 2006499×308 (7 KB)Dantheox (Talk | contribs) (Plot of Chebyshev's <math>\psi</math> function, along with the approximation <math>x-\log 2\pi</math>. This function can be defined in Mathematica by: ψ[n_] := Sum[If[PrimeQ[p], Floor[Log[n]/Log[p]] Log[p], 0], {p, 2, n}] SetAttributes[ψ, Listabl)

The following pages on the English Wikipedia link to this file (pages on other projects are not listed):