nivens constnat
mean >./@(0&,)@(_&q:)"0 }.i.1e6
1.70519
The first 1 million ints gives a closer approximation.
On Wed, 7/6/16, 'Jon Hough' via Programming wrote:
Subject: Re: [Jprogramming] Niven's constant
To: program
-------
On Wed, 7/6/16, jonghough via Programming wrote:
Subject: Re: [Jprogramming] Niven's constant
To: programm...@jsoftware.com
Date: Wednesday, July 6, 2016, 12:40 AM
Hi,
I don't have my PC at hand now, but what is
the problem with your calculation?
I had never
mean=: +/ % #
mean >./@(0&,)@(_&q:)"0 }.i.1e4
1.70357
mean >./@(0&,)@(_&q:)"0 }.i.1e5
1.70504
I think you have to include 1 in the calculation (thus not use 2+i.n as the
argument).
On Tue, Jul 5, 2016 at 8:12 AM, mikel paternain
wrote:
>
>
> De: mike
Hi,
I don't have my PC at hand now, but what is the problem with your calculation?
I had never heard of Nivens constant, but looking at Wikipedia there is a
formula for it containing the zeta function.
Why not use this formula?
Zeta 2 3 4 are well known constants, and you can calculate or h
De: mikel paternain
Enviado: domingo, 3 de julio de 2016 12:07:37
Para: programming@forums.jsoftware.com
Asunto: Niven's constant
Hi,
I need improve the code for calculating Niven's constant. Could you help me?
A first test is (see "Computo ergo sum" section in