Deep PI - On a 42S



#16

Started playing around with the Deep PI routine that Hugh had posted. Entered it into two HP-42S, one of which is the earlier ROM which supports "Fast" mode. I've been curious about how fast is fast mode and thought the Deep PI routine would made a good comparison.

I set up a infrared printer with a HP-41CX and the two HP-42S pointed at it. The 41 is running a short endless loop program that prints the date and time every 5 minutes so that I have a time trail on the printout. One 42S is running normal mode and one is running in fast mode. Both running the PI loop (1, 7, 13, ...) and then print the results.

Ran it for an hour last night and the Fast 42S was calculating about 2.5 times faster.

I plan to load new batteries into both 42S tonight and then I'll just let them run until the batteries die. Be interesting to see how many decimals they calculate and how long the batteries last.

The printer I can run on an AC adapter.

The 41CX has a rechargable battery pack. If I run the 41 with the AC recharger pluged in, will it basically run for ever?? Or should I load up the 41CX with fresh regular batteries to get maximum constant on time? I don't want the 41 to run down before the 42S batteries die.

I'll post the results next week for anyone who's courious.


#17

I had already converted the program into 32sii format (on paper). It has just enough LBLs and STOs to fit.
I started keying, but not even half way I got the memory full message.

pity.

curious about the 42s results.


#18

"I had already converted the program into 32sii format (on paper). It has just enough LBLs and STOs to fit. I started keying, but not even half way I got the memory full message.

pity.

curious about the 42s results."



You need a hp 33s !!!

If you have the program ready, please send it here so we can test it! Thank You!

{VPN} AXL


#19

No objection to publish my conversion, but as mentioned, I´ve done it on paper. I would have to scan it.
Conversion is fairly straight forward, though. I downloaded www.voidware.com/calcs/pi.txt, printed it and replaced every label and storage number with the `matching` letter. 01 becomes A, 02 becomes B aso. 00 became Z and 05 became i, because RCL IND 5 translates to RCL (i).
I wrote a little routine for MOD (32sii hasn´t) and began typing, but as the machine complained so soon, I judged it to be too ´simple´ to cope.


#20

33s has enough memory to store the program
{VPN} AXL
#21

Bram,

I wonder if the code could be optimized to fit into a 32SII. Not necessarily optimized for speed but for space.
I don't have a 32SII any more - I tried one for a while, but just couldn't get used to it. I did love the large display!!

Probally could be adapted to the new 33S.


#22

i can make it smaller and, in fact, faster if you dont mind
not having the first 76 decimal places!!
i was tempted to do this on the original version. but i wanted the whole set of digits. you could, of course, store the first 76 places in the program manually.

hey bill,

you are trying the experiment i want to try soon. basically i have a 41 and a mains adapter but no printer. my plan was to acquire a printer and leave it for two weeks or so. im keen to see how it compares on speed. i'd like to think it will give the first 1000 places in 12 hours, but i could be completely wrong here.

if it is really really slow, i might try to speed it further. i have some ideas but they require considerable work.

good luck with your tests, and please post your findings.


#23

>i can make it smaller

Even then I think it won´t fit in an HP-32SII. The machine already complained at about a third of the program. Each number takes 9.5 bytes and there are a lot of numbers and too few registers left to hold them all or even some.
Better to follow Veli-Pekka´s advice (or accept a current offer for an HP-42S for 60 euros. Thinking about it).


#24

33s has more memory

#25

The 41CX will run forever on a rechargeable pack that is plugged in (or at least until the battery physically cells go bad).


#26

Thanks David,

That's great news. I won't have to worry about the 41 running down before the 42S. I'm really curious at how long a 42 can run on a set of batteries. Also, will be able to see what difference Fast mode makes on battery consumption. Of course, having the printer IR port turned on will reduce battery life.

Question: On the 42S, does having the IR port turned on reduce battery life IF one never prints with it? Does it consume power even if not printing?


#27

Yes,if the IR is in trace mode it is sending information even though there is no reception by the printer.

I would say no, if trace mode is off and you are not using any commands that would activate the IR to send to the printer.

#28

Someone here could suggest the correct voltage -- something like 4.5 V or less. Connecting the right leads from, say, a Radio Shack AC-to-DC converter (or maybe just a few D cells?) should enable you to test for significantly longer . . .


#29

The 42S runs off 3 cells at about 1.5V each, so 4.5V should be fine.
However, those little wall-wart mains adapters are often not regulated and the off load voltage can be as much as double what you expect. For that reason, and because I've had them catch fire, I won;t allow them in my workshop!
Use a decent, regulated, bench power supply and you'll have no problems. 3 D cells in series should be fine as well.


#30

Yesterday the UPS man brought me the Mastech HY1500 regulated power supply which I purchased off ebay this week ($85 including shipping). I have been playing with it quite a bit.

It has analog V and A meters, and provides adjustable 0-15V and 0-3A, offering restricted current protection.

Thus far I have used it to power a 32E with broken battery terminals (2.5 v); a 11c (4.5v); and an old 9V Novus Mathemetician.

It works GREAT. I highly recommend it. One of these units will power virtually any calculator indefinitely.

Take care.

Wayne.


Possibly Related Threads...
Thread Author Replies Views Last Post
  [OT] Mathematica free for Raspberry PI BruceH 32 5,030 11-23-2013, 05:24 AM
Last Post: Nick_S
  Computing pi with the PC-1300S Kiyoshi Akima 0 633 11-17-2013, 12:24 AM
Last Post: Kiyoshi Akima
  Calculating Pi LHH 9 1,754 09-27-2013, 10:50 PM
Last Post: Gerson W. Barbosa
  Visualization of pi Bruce Bergman 13 2,291 08-17-2013, 05:00 PM
Last Post: Howard Owen
  OT: Happy Pi Day! Eddie W. Shore 13 2,192 03-22-2013, 10:44 AM
Last Post: Les Koller
  Totally OT ... Pi Day for my car Maximilian Hohmann 18 2,727 03-10-2013, 01:15 PM
Last Post: chris smith
  [WP34S] A funny bug in Pi (prod) Eduardo Duenez 3 875 01-28-2013, 03:41 AM
Last Post: Walter B
  28S Pi Functionality Matt Fegenbush 3 940 10-17-2012, 02:15 AM
Last Post: Nick_S
  e^pi - pi + 9/10^4 + 1/(10^4*ln(2) + sqrt(10)/6)^2 Gerson W. Barbosa 47 7,262 08-08-2012, 10:58 PM
Last Post: Les Koller
  [OT] 355/113 and pi David Hayden 28 4,220 07-27-2012, 10:01 AM
Last Post: Egan Ford

Forum Jump: