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 ahsoftw...@gmail.com _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode