2010 Ti Nspire Faster than G2 HP Prime
|
09-17-2022, 06:21 PM
Post: #1
|
|||
|
|||
2010 Ti Nspire Faster than G2 HP Prime
What do you guys thing about this YouTube video?
https://youtube.com/shorts/KCZ4YaPcMl4?feature=share Interestingly enough, my prime was considerably slower (more than 1:30s!) when I did the same operation for the 2nd or 3rd time. My G1s (A and C) were about 3 times faster than G2. |
|||
09-17-2022, 06:55 PM
Post: #2
|
|||
|
|||
RE: 2010 Ti Nspire Faster than G2 HP Prime
That's strange. What's even more confusing is that when you simply input "(x^2+7x+4)^50" on the "Maximum" simplification setting, the calculator will output a result almost instantly, in noticeably less time than the Nspire.
|
|||
09-17-2022, 07:21 PM
(This post was last modified: 09-18-2022 03:55 PM by Jean-Baptiste Boric.)
Post: #3
|
|||
|
|||
RE: 2010 Ti Nspire Faster than G2 HP Prime
Two different CAS engines executing on two unrelated operating systems built with two separate toolchains running on top of two dissimilar hardware platforms have differing performance characteristics. Color me surprised.
I bet that there's one or more algorithms somewhere within the HP Prime that at the very least happen to have non-linear computational complexity in this particular case. It could be Giac itself, or a dependency, or a library, or any of the above in any combination at fault here. It doesn't matter if one calculator has a processor five times slower than the other, an O(n) algorithm on the slower machine will win against an O(n²) algorithm on the faster machine given a big enough n. That the G1 is three times faster than the G2 in this benchmark is unexpected, but still... Despite the appearances they do not share the same operating system underneath, so it's yet more code that has potentially different performance characteristics between the two. Discovering why exactly the HP Prime has a bad time with this input would probably require profiling its firmware. Maybe Giac happens to be the only component at fault here and profiling it on its own would reproduce the problem, but ultimately the only ones who have all the pieces to investigate this are those with full access to the HP Prime codebase. |
|||
09-17-2022, 07:29 PM
Post: #4
|
|||
|
|||
RE: 2010 Ti Nspire Faster than G2 HP Prime
(09-17-2022 06:55 PM)jfelten Wrote: That's strange. What's even more confusing is that when you simply input "(x^2+7x+4)^50" on the "Maximum" simplification setting, the calculator will output a result almost instantly, in noticeably less time than the Nspire. Oh wow! In literally milliseconds indeed; ain't that something! ? The Prime has to be the most interesting calculator of its time! |
|||
09-17-2022, 07:37 PM
(This post was last modified: 09-17-2022 07:39 PM by gastondefer.)
Post: #5
|
|||
|
|||
RE: 2010 Ti Nspire Faster than G2 HP Prime
(09-17-2022 07:21 PM)Jean-Baptiste Boric Wrote: Two different CAS engines executing on two unrelated operating systems built with two separate toolchains running on top of two dissimilar hardware platforms have differing performance characteristics. Color me surprised. Absolutely mate! This makes me think of the Nspire Touchpad from 2010 with slower hardware, being slightly faster than the 2011 color screen model (both CAS and non CAS) in pretty much everything I threw at it! Though I strongly suspect the color LCD to be the cause in that particular case. |
|||
09-18-2022, 07:50 AM
Post: #6
|
|||
|
|||
RE: 2010 Ti Nspire Faster than G2 HP Prime
Everybody can look at the source code of giac and see what happens here, let me explain how. Untar the source code (https://www-fourier.univ-grenoble-alpes....stable.tgz), go to the src directory and run
Code: grep at_expand *.cc There are a few lines returned, the interesting one is Code: lin.cc: define_unary_function_ptr( at_expand ,alias_at_expand ,&__expand); Code:
You can also see how the expansion is done step by step on this example, run from the giac directory Code: export CXXFLAGS=-g && ./configure && cd src && make Code: r 'expand((x^2+7x+4)^5)' Now the conclusion is that expand on the Prime is *not* the equivalent of expand on the TI Nspire, in fact it should be compared to normal/simplify on the Prime, or more precisely to partfrac on the Prime (the expand commandname on the Nspire is a bit misleading, it does not only expand, but also does partial fraction expansion). The Prime CAS has more options/commands than the TI Nspire CAS, which means that before drawing conclusions on a benchmark, one should dig a little bit. Since this will probably not happen, I have now modified giac source code accordingly, see: https://github.com/geogebra/giac/commits/master Unfortunately, I have no idea when the change will be released in a public Prime firmware... |
|||
09-18-2022, 01:43 PM
Post: #7
|
|||
|
|||
RE: 2010 Ti Nspire Faster than G2 HP Prime
(09-18-2022 07:50 AM)parisse Wrote: Everybody can look at the source code of giac and see what happens here, let me explain how. Untar the source code (https://www-fourier.univ-grenoble-alpes....stable.tgz), go to the src directory and run Thank you so very much for this in depth explanation; truly appreciated! |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)