09-08-2018, 08:18 PM

09-08-2018, 09:17 PM

(09-08-2018 08:18 PM)pier4r Wrote: [ -> ]Casio 90E+ anyone ?

Very likely to be identical to fx-CG50.

11-16-2018, 01:11 AM

Finally my question on the Ti-Planet forum got an answer

TI Nspire CX CAS, hardware version P-0411A (2011), OS 4.5.0.1180 (2017):

Lua max= 100000: 47.1s - 139560,97614105

C with Ndless max=100000: 12 s

This a very old version of the TI-Nspire. A more recent version should be faster.

source: https://tiplanet.org/forum/viewtopic.php?f=19&t=20986

TI Nspire CX CAS, hardware version P-0411A (2011), OS 4.5.0.1180 (2017):

Lua max= 100000: 47.1s - 139560,97614105

C with Ndless max=100000: 12 s

This a very old version of the TI-Nspire. A more recent version should be faster.

source: https://tiplanet.org/forum/viewtopic.php?f=19&t=20986

11-16-2018, 06:52 PM

(01-02-2018 10:57 AM)grsbanks Wrote: [ -> ]...

One way round it is to use the fact that \( sin(atan(x)) = { x \over \sqrt(1+x^2) } \)

That, however, doesn't benchmark the trig functions, so any results obtained would not be relevant to this particular test.

Taking a look at the UserRPL Σ (summation) vs. SysRPL looped versions of the 50g results was puzzling me, as I didn't see how Σ could possibly be executing a symbolic UserRPL expression with type checking faster than a simple SysRPL loop could step through the same calculations without the type checks. That prompted me to dig a bit into the Σ command, which in turn provided the answer: Σ uses the CAS to simplify the expression prior to looping through the summation, which ends up applying the same optimization you've identified above (\( sin(atan(x)) = { x \over \sqrt{1+x^2} } \)). In my mind, that would appear to invalidate the 50g benchmarks that use the summation notation since they aren't actually performing the same series of computations as the other platforms. I'm assuming, of course, that none of the other non-RPL calculators perform a similar optimization prior to summing the values. I have no way of knowing if that's a safe assumption, though.

To put this into perspective, a 50g SysRPL implementation that takes advantage of this same simplification could be as follows:

Code:

`::`

SETRAD

%0 DUP

1000 ZERO_DO (DO)

SWAP %1+ SWAPOVER

DUPDUP %*

%1+

%SQRT

%/

%EXP

%3 %NROOT

%+

LOOP

SWAPDROP

;

That compares more reasonably with the UserRPL Σ version(s) that complete in about 25s, also yielding the same result. This could be made even faster (16s) by performing extended real calculations and raising the final term to the 1/3 power instead of finding the cube root.

It's possible that there's some combination of modes/flag settings that will disable the automatic simplification process that Σ performs, but I haven't tried to find them. As it stands now, I don't believe the 50g UserRPL Σ versions are appropriate to include with the other benchmarks since they aren't actually performing the intended computations defined by the test.

11-17-2018, 11:37 PM

DavidM thanks for the insight! I tried to pick a formula that couldn't be optimized but the 50g won again!

(I wonder if the savage test can be optimized as well as it trivially use a function and its inverse)

I'll put a disclaimer to the results of the 50g.

Post #143,#144 included.

(I wonder if the savage test can be optimized as well as it trivially use a function and its inverse)

I'll put a disclaimer to the results of the 50g.

Post #143,#144 included.

11-18-2018, 03:25 PM

(11-17-2018 11:37 PM)pier4r Wrote: [ -> ](I wonder if the savage test can be optimized as well as it trivially use a function and its inverse)

The formula for the Savage test can definitely be simplified by the 50g CAS:

Code:

`'TAN(ATAN(EXP(LN(√SQ(X)))))+1'`

SIMPLIFY

...yields:

Code:

`'|X|+1'`

You could probably come up with an implementation that starts with the long version of the above, then SIMPLIFY it and loop the modified algebraic to come up with a total. It would be fast, and of course accurate as well. But it wouldn't be running the actual Savage test, would it? I see this as the same issue, and the result would be similarly meaningless in the context of that benchmark.

After a bit of playing around with this, it appears that the UserRPL SIMPLIFY command will skip this particular optimization if you set system flag -111. However, the Σ command's simplification doesn't use the same code as SIMPLIFY. It appears to be hard-wired to simplify regardless of that flag's setting (it uses an internal SysRPL routine called SimplifyExpression instead).

Just to be clear, I actually think it's a Good Thing that Σ performs this simplification, in that the typical use case for that command will normally only benefit or remain neutral from that step. Benchmarking and performance comparisons are the only situations I can think of where this feature may actually be problematic, since you can end up running entirely different code than you originally intended.

11-20-2018, 01:54 PM

TI Nspire CX CAS, hardware version N-0118AB (2018), OS 4.5.0.1180 (2017):

C with Ndless max=100000: 9 s

C with Ndless max=100000: 9 s

12-01-2018, 10:54 PM

Updated to post #147

Interesting how the Prime still smokes even C on a recent nspire. I wonder if the prime sum function does the same optimizations of the 50g, although I think that Home and CAS on the prime are strictly separated.

Still impressive the prime and the nspire.

Interesting how the Prime still smokes even C on a recent nspire. I wonder if the prime sum function does the same optimizations of the 50g, although I think that Home and CAS on the prime are strictly separated.

Still impressive the prime and the nspire.

12-02-2018, 03:17 PM

HP-11C - RPN PROGRAM

MAX 10: 31.6 sec Result: 13.71183502

MAX 100: 316.2 sec Result: 139.2971874

CASIO FX-602P - KEYSTROKE PROGRAM

MAX 10: 9.2 sec Result: 13.71183502

MAX 100: 91.3 sec Result: 139.2971873

HP 42S - RPN PROGRAM

MAX 10: 3.5 sec Result: 13.7118350166

MAX 100: 31.9 sec Result: 139.297187046

MAX 10: 31.6 sec Result: 13.71183502

MAX 100: 316.2 sec Result: 139.2971874

CASIO FX-602P - KEYSTROKE PROGRAM

MAX 10: 9.2 sec Result: 13.71183502

MAX 100: 91.3 sec Result: 139.2971873

HP 42S - RPN PROGRAM

MAX 10: 3.5 sec Result: 13.7118350166

MAX 100: 31.9 sec Result: 139.297187046

12-02-2018, 04:43 PM

HP-97 - RPN PROGRAM

MAX 10: 33.2 sec Result: 13.71183502

MAX 10: 33.2 sec Result: 13.71183502

12-06-2018, 11:30 PM

HP-10C - RPN PROGRAM

MAX 10: 31.5 sec Result: 13.71183502

MAX 100: 316.5 sec Result: 139.2971874

MAX 10: 31.5 sec Result: 13.71183502

MAX 100: 316.5 sec Result: 139.2971874

12-07-2018, 06:33 PM

I'll update asap. Thanks for the contribution!

12-08-2018, 07:18 PM

CASIO PB 700 - BASIC

MAX 10: 4.6 sec. Result: 13.71183502

MAX 100: 45.2 sec. Result: 139.297187

MAX 10: 4.6 sec. Result: 13.71183502

MAX 100: 45.2 sec. Result: 139.297187

12-11-2018, 11:39 PM

Just another take for Casio fx-720P ;-)

CASIO FX-720P - BASIC

MAX 10: 4.4 sec. Result: 13.71183502

MAX 100: 44.4 sec. Result: 139.297187

CASIO FX-720P - BASIC

MAX 10: 4.4 sec. Result: 13.71183502

MAX 100: 44.4 sec. Result: 139.297187

12-13-2018, 07:54 PM

updated first post and wiki up to post #154

01-07-2019, 11:46 PM

TI-30X Pro MathPrint (sum function)

n=1000

t~104s

Result=1395.346288 [1395.346287743 internal]

n=100

t~11.3s

Result=139.2971870 [139.2971870461 internal]

(More than double the speed of TI-36X Pro / TI-30X Pro MultiView.)

n=1000

t~104s

Result=1395.346288 [1395.346287743 internal]

n=100

t~11.3s

Result=139.2971870 [139.2971870461 internal]

(More than double the speed of TI-36X Pro / TI-30X Pro MultiView.)

01-08-2019, 10:57 AM

updated to post #156

01-10-2019, 12:27 AM

Hallo!

I have tried Nintendo New 2DS XL with SmileBasic.

This is the result:

max= 100000

Result = 139536.56649434

time = 0.55 sec.

Hey, this 14 times faster as the HP prime!

Yes, it is a interpreted structured BASIC. You can buy it like a game at the Nintendo store.

Yes, 3DS is a game handhold with a quad core ARM with 268 Mhz default clock and 804 Mhz on demand. But I am not shure, which clock SmileBAsic is using.

(This data I got from the german wikipedia.)

Here is the program for checking:

CLS

M=MAINTCNT '60 Ticks per second, I think

A=0

FOR X=1 TO 100000

A=A+POW(EXP(SIN(ATAN(RAD(X)))),1/3)

NEXT

PRINT A

PRINT ROUND(10/6*(MAINCNT-M))/100;" sec"

I have many fast calculator from HP 50 to Casio FX-CG20 and TI-Nspire.

But I think this is fastest handheld with the program editor for a high level language inside the device.

If you are interested, I have tried the 8 dame benchmark.

I hope it is ok, to tell about this astonishing result.

Bernd

I have tried Nintendo New 2DS XL with SmileBasic.

This is the result:

max= 100000

Result = 139536.56649434

time = 0.55 sec.

Hey, this 14 times faster as the HP prime!

Yes, it is a interpreted structured BASIC. You can buy it like a game at the Nintendo store.

Yes, 3DS is a game handhold with a quad core ARM with 268 Mhz default clock and 804 Mhz on demand. But I am not shure, which clock SmileBAsic is using.

(This data I got from the german wikipedia.)

Here is the program for checking:

CLS

M=MAINTCNT '60 Ticks per second, I think

A=0

FOR X=1 TO 100000

A=A+POW(EXP(SIN(ATAN(RAD(X)))),1/3)

NEXT

PRINT A

PRINT ROUND(10/6*(MAINCNT-M))/100;" sec"

I have many fast calculator from HP 50 to Casio FX-CG20 and TI-Nspire.

But I think this is fastest handheld with the program editor for a high level language inside the device.

If you are interested, I have tried the 8 dame benchmark.

I hope it is ok, to tell about this astonishing result.

Bernd

01-11-2019, 08:38 AM

Hallo!

I have update the benchmark, because somebody told me, I made a mistake:

So I delete the RAD function.

100000 loop:

FOR X=1 TO 100000

A=A+POW(EXP(SIN(ATAN(A))),1/3)

NEXT

Note: POW is used because 3. Root doesn't exist

Time: 0.52 secs, A=139560.97614105

And with 1 million loop I got this:

Time: 5.22 secs, A=1395612.15872538

Has anybody tried a Raspberry PI with this benchmark?

Because you can build the Raspberry like a handheld with a small display and keyboard in little box. This could be faster as a handheld game consol.

Bernd

I have update the benchmark, because somebody told me, I made a mistake:

So I delete the RAD function.

100000 loop:

FOR X=1 TO 100000

A=A+POW(EXP(SIN(ATAN(A))),1/3)

NEXT

Note: POW is used because 3. Root doesn't exist

Time: 0.52 secs, A=139560.97614105

And with 1 million loop I got this:

Time: 5.22 secs, A=1395612.15872538

Has anybody tried a Raspberry PI with this benchmark?

Because you can build the Raspberry like a handheld with a small display and keyboard in little box. This could be faster as a handheld game consol.

Bernd

01-12-2019, 02:53 PM

I'll add those but not as calculator devices. Just as loose reference.

There are calculators with physical keyboards for math input, what is meant here. Then another category is app calculators , at least they have a screen for math input. Then there are programming languages running on whatever computing platform and those are another category again. I'd suppose a smartphone running python would crush everything. Or a tablet.

So thanks for contributing, but don't expect to see the DS count as calculator.

edit: I didn't realize the prime g2 was as fast as an iphone 6s with free42. wow.

update: updated up to post #159

There are calculators with physical keyboards for math input, what is meant here. Then another category is app calculators , at least they have a screen for math input. Then there are programming languages running on whatever computing platform and those are another category again. I'd suppose a smartphone running python would crush everything. Or a tablet.

So thanks for contributing, but don't expect to see the DS count as calculator.

edit: I didn't realize the prime g2 was as fast as an iphone 6s with free42. wow.

update: updated up to post #159