Advertisement
MatsGranvik

Polynomial for Dirichlet eta function

Jul 17th, 2022 (edited)
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. Clear[c, s]
  2. (*c=10;*)
  3. Exp[-s*Log[1]*c]
  4. -Exp[-s*Log[2]*c]
  5. Exp[-s*Log[3]*c]
  6. -Exp[-s*Log[3]*c]
  7.  
  8.  
  9. "Minimal analytic continuation part of Euler Maclaurin for Riemann zeta:"
  10.  
  11. (*start*)
  12. k = 7;
  13. s = 11;
  14. 1/k^(s - 1)
  15. Exp[-(s - 1)*Log[k]]
  16. %% - %
  17. (*end*)
  18.  
  19. (*start*)
  20. (*better version than below*)
  21. Clear[s, c];
  22. nnnn = 20;
  23. Monitor[TableForm[Table[
  24. nn = nnn;
  25. Factor[Sum[
  26. k = kk;
  27. c = 1;
  28. a = Table[If[Mod[n, k] == 0, 1 - k, 1]*s/n, {n, 1, nn}];
  29. expk =
  30. MatrixExp[-c*
  31. Table[Table[If[Mod[n, k] == 0, a[[n/k]], 0], {k, 1, nn}], {n,
  32. 1, nn}]][[All, 1]];
  33. (-1)^(kk + 1)*Factor[Total[Expand[expk]]], {kk, 1, nn}]], {nnn,
  34. nnnn, nnnn}]], nnn]
  35. (*end*)
  36.  
  37.  
  38. Clear[s, c];
  39. TableForm[Table[
  40. nn = nnn;
  41. Factor[Sum[
  42. k = kk;
  43. c = 1;
  44. a = Table[If[Mod[n, k] == 0, 1 - k, 1]*s/n, {n, 1, nn}];
  45. expk =
  46. MatrixExp[-c*
  47. Table[Table[If[Mod[n, k] == 0, a[[n/k]], 0], {k, 1, nn}], {n,
  48. 1, nn}]][[All, 1]];
  49. (-1)^(kk + 1)*Factor[Total[Expand[expk]]], {kk, 1,
  50. nn}]] nnn!, {nnn, 2, 12, 2}]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement