HP Forums

Full Version: The Fibonacci Triangle - HP-38/39/40 GROB Question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

In this thread in the French MySilicium forum there are several programs to display the Fibonacci sequence as a binary image. The original idea is from this page: http://naivedesign.com/ND1/The_Fib_Triangle.html.

The by far fastest solution runs on a HP50g and uses binary arithmetic and a dynamically built GROB. The HP40gs uses very similar hardware but its programming model is so simplified that I came up with a program which is about 100 times slower than the user RPL program for the 50G. This is a little frustrating. The main problem is that I couldn't find a way to dynamically construct a GROB. I see two possible solutions:

1) There exists a library somewhere in the wild which provides dynamic string and GROB handling.

2) The program is translated to SysRPL. Can I program in SysRPL on the machine or what do I need?

Quote:
2) The program is translated to SysRPL. Can I program in SysRPL on the machine or what do I need?

You can program in SysRPL on the machine by simply typing "256 ATTACH" and using the built-in compiler. You can also download Jazz 50G if you wish to do SysRPL debugging, among other things.

Also, it would be faster to draw directly onto the screen after each computation rather than manipulate everything via strings and GROBs.

Yes, you can program in sysRPL, but it is quite a pain and requires you to understand applet structure, and use a lot of not so nicely integrated tools to do so.

TW

Hi Markus,

Quote:
The by far fastest solution runs on a HP50g and uses binary arithmetic and a dynamically built GROB.

Fastest, if you don't include the calculator that served as inspiration for this thread. For completeness, ND1, with a run-time of 0.3s for computation and 0.7s for computation and display, is quite a bit faster than the 50g at 170s for this task. :-)

The implementations are really impressive, though.

Oliver

Han, I'm talking about the 39G (or 39gs/40gs), not the 50g. I don't think I can attach the library on these machines.

Can you tell us more about ND1?

I understand that I can program FOR the machine in SysRPL but obviously not ON the machine.

BTW, is there a SYSEVAL call the does the equivalant of PVIEW to allow interactive scrolling of a GROB of arbitrary size?

This was my first attempt and it's slower than the GROB version.

Marcus,

Of course. ND1 is a new calculator in the spirit of the HP-28,-48,-49 lines. A vague mix of HP-28S and HP-50g, it supports RPL but its biggest strength and architectural feature is that it's built on JavaScript and HTML5, and that it's fully programmable and extensible.
There's a lot of information on the "app-site" at http://naivedesign.com/ND1
Click on Specs to begin and also see the comparison to HP calcs on the specs page.

An intro to the project, and call for programmer participation, for HP pros is here http://groups.google.com/group/comp.sys.hp48/browse_thread/thread/2b377149669b7fb4#
You may also want to check out http://groups.google.com/group/comp.sys.hp48/browse_thread/thread/5bd6e0b2e4691311#

Cheers.