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 tinkered a bit with 
interval arithmetic and want to explore that more. That way I can have 
indefinite precision decimal intervals. Add complex and I will have to change 
my library to "very slow math".

One problem is readability.

> On Oct 5, 2019, at 11:43 PM, Mark Wieder via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> 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
> 
> 


_______________________________________________
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

Reply via email to