Microchallenge 41/42: nr of digits
#1

Challenge:
write a program that can run unchanged on either a HP41 or a HP42, and will return 10 on a HP41 and 12 on a HP42. It must not depend on any modes or flag settings.
Goal: shortest program excluding LBL and END

to give you an idea, this is my first thought:

.6
ENTER
1/X
1/X
-
LOG
CHS

or, 8 bytes (41) and 10 bytes (42)
Can you do better?

#2

not nice to do mini-challenges in the morning.. it makes us late for work. SMILE!

#3

At the time of posting, it was luchtime where I am.

#4

Yes, I realized that the world had really changed when I started having to take account of time deltas greater than three hours in both my work and my recreational lives. Back when the calculators we love so much were created, correspondence between continents was not routine like it is today. Of course, this is still mainly limited to the developed world, although that is projected to rapidly change, and soon. I wish I could say I'm hopeful that the conversations engendered by this coming surge of new netizens would all be as rational, calm and friendly as discussions here tend to be. Even when we are annoyed with one another, we tend to be civil about it. But recent years have shown that enhanced communication doesn't necessarily contribute to better understanding between peoples. It should have been obvious to me that people can spew hatred over the Internet just as easily as fellowship, but it wasn't. I still think that when the sum of all the conversations are added up, the balance is helpful, constructive, rational, loving and above all, useful to human beings everywhere. Wikipedia shows this at work. There is a lot of entropy tugging at that project, but the content still seems to tend toward all those qualities I just mentioned, through the strenuous efforts of lots of dedicated folks.

I just had my day interrupted by a blown clutch, and had a spun down moment, and that's what came up. We now return you to your HP calculator enthusiast's discussion forum, already in progress.

Regards,
Howard



Possibly Related Threads…
Thread Author Replies Views Last Post
  Obtaining More Decimal Digits (50g) Eddie W. Shore 3 1,515 09-13-2012, 05:38 PM
Last Post: Gilles Carpentier
  OT: The first 4,000,000 digits of Pi, visualized in a single image Jeff Kearns 36 8,695 04-29-2012, 11:06 PM
Last Post: Jeff Kearns
  HP-67's Flag 3 to HP-41/42 Equivalent Matt Agajanian 2 1,171 03-29-2012, 06:29 AM
Last Post: Dieter
  Classic repair - ghosting digits - What's your experiences? McAllan 11 3,166 03-11-2012, 08:25 PM
Last Post: Geoff Quickfall
  Tiny Challenge: significant digits Werner 70 14,153 01-21-2012, 05:53 PM
Last Post: Paul Dale
  # digits displayed by HP 15c LE Masao Kinoshita 6 1,947 09-27-2011, 09:05 AM
Last Post: Paul Gaster
  10 or 12 digits? Kiyoshi Akima 2 1,089 08-09-2011, 03:22 AM
Last Post: Kiyoshi Akima
  Reciting digits of pi Palmer O. Hanson, Jr. 14 3,835 04-04-2011, 02:37 PM
Last Post: Ed Look
  HP 82240B. Infra red printer for HP 42---HP 50g Stuart Sprott 20 4,666 04-29-2010, 01:52 PM
Last Post: Vieira, Luiz C. (Brazil)
  HP41/42 Unit Conversion Egan Ford 36 7,546 03-30-2009, 11:30 AM
Last Post: Martin Pinckney

Forum Jump: