Guest User

Untitled

a guest
May 1st, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. (*start*)
  2. (*Mathematica 8*)
  3. nn = 1000;
  4. Monitor[a1 =
  5. Table[(n + 1)*(Round[(Exp[1/(Im[ZetaZero[n + 1]]/(2*Pi))] - 1)^-1] -
  6. Round[(Exp[1/(Im[ZetaZero[n]]/(2*Pi))] - 1)^-1]), {n, 1,
  7. nn}], n]
  8. a2 = DeleteCases[a1, 0]
  9. b = Table[Sum[Round[Log[n]], {n, 1, k}], {k, 3, Length[a2] + 2}]
  10. cc = a2 - b;
  11. cc[[1 ;; 20]]
  12. Label
  13. g1 = ListLinePlot[a2, PlotStyle -> Red, PlotLabel -> "sequence a2"]
  14. g2 = ListLinePlot[b, PlotLabel -> "asymptotic b"]
  15. g3 = Show[g1, g2,
  16. PlotLabel -> "sequence a2 and asymptotic b superimposed"]
  17. g4 = ListLinePlot[cc,
  18. PlotLabel -> "difference between sequence a2 and asymptotic b"]
  19. GraphicsGrid[{{g1, g2}, {g3, g4}}]
  20. (*end*)
Add Comment
Please, Sign In to add comment