...and a challenge
Mark Wieder
ahsoftware at sonic.net
Sun Oct 6 01:43:34 EDT 2019
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 similar but different.
>
> Anyway, see for yourself
...the javascript implementation is *very* fast, and one reason is the
BigInt support. You're not going to be able to do this in LC without
resorting to string chunks.
> BTW, I haven’t seen JavaScript using ‘let’ before, or having ’n’ to indicate a floating point number. That could be a dot net thing.
See Peter Wood's response.
--
Mark Wieder
ahsoftware at gmail.com
More information about the use-livecode
mailing list