Advertisement
MatsGranvik

Riemann zeta function on the critical line

Jan 19th, 2013
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. scale = 1000000;
  2. xres = .00001;
  3. x = Exp[Range[0, Log[scale], xres]];
  4. RealPart = Log[x]*FourierDST[-(SawtoothWave[x] – 1)*x^(-1/2)];
  5. ImaginaryPart = Log[x]*FourierDCT[-(SawtoothWave[x] + 1)*x^(-1/2)];
  6. datapointsdisplayed = 300;
  7. ymin = -15;
  8. ymax = 15;
  9. g1 = ListLinePlot[
  10. Sqrt[scale]*{RealPart[[1 ;; datapointsdisplayed]],
  11. ImaginaryPart[[1 ;; datapointsdisplayed]]},
  12. PlotRange -> {ymin, ymax}, DataRange -> {0, 68.00226987379779},
  13. Filling -> Axis];
  14. Show[Flatten[{g1,
  15. Table[Graphics[{PointSize[0.013],
  16. Point[{N[Im[ZetaZero[n]]], 0}]}], {n, 1, 16}]}],
  17. ImageSize -> Large]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement