Re: [9fans] dc(1) exponent limits

2019-12-16 Thread Bakul Shah
On Mon, 16 Dec 2019 18:28:35 -0800 Bakul Shah wrote: > On Tue, 17 Dec 2019 09:46:52 +1100 Rob Pike wrote: > > % ivy > > 652342**52342 > > 1.85475753442e+304341 > > > > )cpu > > 8.291ms > > > > (652342**52342)/34232342 > > 9.27378767209e+304340/17116171 > > > > )cpu > > 9.217ms > > > > float _ >

Re: [9fans] dc(1) exponent limits

2019-12-16 Thread Bakul Shah
On Tue, 17 Dec 2019 09:46:52 +1100 Rob Pike wrote: > % ivy > 652342**52342 > 1.85475753442e+304341 > > )cpu > 8.291ms > > (652342**52342)/34232342 > 9.27378767209e+304340/17116171 > > )cpu > 9.217ms > > float _ > 5.41814385477e+304333 On plan9/pi4 I get % ivy (652342**52342)/34232342

Re: [9fans] dc(1) exponent limits

2019-12-16 Thread Rob Pike
In case it's not clear, those calculations are integral, only the presentation looks like floats. -rob On Tue, Dec 17, 2019 at 9:46 AM Rob Pike wrote: > % ivy > 652342**52342 > 1.85475753442e+304341 > > )cpu > 8.291ms > > (652342**52342)/34232342 > 9.27378767209e+304340/17116171 > > )cpu >

Re: [9fans] dc(1) exponent limits

2019-12-16 Thread Rob Pike
% ivy 652342**52342 1.85475753442e+304341 )cpu 8.291ms (652342**52342)/34232342 9.27378767209e+304340/17116171 )cpu 9.217ms float _ 5.41814385477e+304333 50 minutes feels excessive; dc seems to work very hard. -rob -- 9fans: 9fans Permalink:

[9fans] dc(1) exponent limits

2019-12-16 Thread Lyndon Nerenberg
While running some silly benchmarks I discovered dc's '^' operator limits exponents to ''. This seems arbitrary, perhaps a leftover safety measure to keep things from eating all the CPU for days on end on a slow machine? I upped the limit to 9 and the test expression ran fine on a Pi4: