It doesn't have to be text strings. It could be data (byte strings). This would
be handy for using the base-16 method for computing pi. In my personal "slow
math" library, I have tinkered with binary data, float encoded data, and number
arrays, usually using a decimal point. Division is hard. I
On 10/5/19 8:34 PM, Colin Holgate via use-livecode wrote:
Pi is a reserved work, so I used pie. I haven’t seen this way of producing Pi
before, and in both JavaScript and LivceCode it seems to be instantaneous. I
think it’s a rewording of 4*(1-1/3+1/5-1/7+1/9…)
the Taylor algorithm is simila
Colin
> On 6 Oct 2019, at 11:34, Colin Holgate via use-livecode
> wrote:
>
> Pi is a reserved work, so I used pie. I haven’t seen this way of producing Pi
> before, and in both JavaScript and LivceCode it seems to be instantaneous. I
> think it’s a rewording of 4*(1-1/3+1/5-1/7+1/9…)
…
> se
Does it give the correct answer for pie? I don’t think the n suffix is for
floating point. I thought it was for expressing bigint type.
> On Oct 5, 2019, at 8:34 PM, Colin Holgate via use-livecode
> wrote:
>
>
> Pi is a reserved work, so I used pie. I haven’t seen this way of producing Pi
>
Pi is a reserved work, so I used pie. I haven’t seen this way of producing Pi
before, and in both JavaScript and LivceCode it seems to be instantaneous. I
think it’s a rewording of 4*(1-1/3+1/5-1/7+1/9…)
Anyway, see for yourself
on mouseup
put the ticks into t
put 1.0 into i
put 3.0 * 10^20
On 10/5/19 6:01 PM, Mark Wieder via use-livecode wrote:
On 10/5/19 4:57 PM, JB via use-livecode wrote:
Hi Mark,
I just visited the link Richard provided and it shows the following;
Hah! I missed a very important word in that sentence.
Nonetheless, here's pi in nine lines of javascript. I ha