Re: ...and a challenge

2019-10-06 Thread Dar Scott Consulting via use-livecode
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

Re: ...and a challenge

2019-10-05 Thread Mark Wieder via use-livecode
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

Re: ...and a challenge

2019-10-05 Thread Peter W A Wood via use-livecode
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

Re: ...and a challenge

2019-10-05 Thread Jerry Jensen via use-livecode
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 >

Re: ...and a challenge

2019-10-05 Thread Colin Holgate via use-livecode
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