Message Boards Message Boards

How long a ZetaZero calculation takes?

GROUPS:

Hello folks, I have been waiting Mathematica 11.2 to perform following summation for two days:

ZetaZeroSum

Is this normal and if it so how long the calculation will take?

PS. I haven't used Mathematica for years, so there may be some silly mistake I've done.

POSTED BY: mikael.mannonen
Answer
14 days ago

Mikael,

you should post your code as code and not an image.

I would do the numerical before the Im[] but it is only a minor speedup. This will help:

AbsoluteTiming[ParallelSum[Im[N[ZetaZero[i]]], {i, 1, 10000}]]

it takes 32 seconds on my machine with 8 kernels which means you would need 100 times that to get to a million or 3200 seconds (about an hour)...

Regards,

Neil

POSTED BY: Neil Singer
Answer
14 days ago

Hi Mikael.

If you want the answer, you have to wait few hours for computations.

ZetaZero function is the bottleneck, I tried five different ways to speed up, but your code is the fastest.

Maybe this helps.

Regards Mariusz

POSTED BY: Mariusz Iwaniuk
Answer
14 days ago

Hello Neil and Mauriusz,

thank you for advice and sorry for the image. I just wanted to ensure that it looks correct, but in the future I'll post code.

Yes, it took more than 48 hours on my machine to get the result: 10.4471 if someone is interested. Only one kernel was used, although there were two Mathematica kernels available according to the Windows Task manager.

Regards, Mikael

POSTED BY: mikael.mannonen
Answer
13 days ago

Two in the task manager really means one computational kernel. You should go into the menu and look at kernel status. You need to turn them on explicitly to use them. As a measure of your machine speed I’d restart mma and post the speed to do 10,000. Then try it in parallel.

POSTED BY: Neil Singer
Answer
13 days ago

Group Abstract Group Abstract