Can anyone code this:
http://www2.hursley.ibm.com/decimal/DPDecimal.html
[VPN]
HP-16C limits?
|
|
« Next Oldest | Next Newest »
|
▼
Post: #2
04-09-2005, 03:33 PM
▼
Post: #3
04-10-2005, 10:22 AM
I don't think it can be squeezed into an HP-16C. I implemented it in Java, and the classes are about 5 KB in total. You can get my Java code, if you want, but it is just a translation of the NetRexx code.
Post: #4
04-11-2005, 11:41 AM
This quick and dirty HP16C program must do for the compressor !
001- LBL C STO 0 8 8 8 AND STO 2 RCL 0 XOR Patrice Torchet ▼
Post: #5
04-11-2005, 01:50 PM
Hi, Patrice;
I see you are trying to format your listing. Please, let me know if this is what you want: 001- LBL C STO 0 8 8 8 AND STO 2 RCL 0 XOR
To accomplish this, add a [pre] in the begining of the listing, and a [/pre] in the end of it. Like this: [pre]001- LBL C STO 0 8 8 8 AND STO 2 RCL 0 XORand, of course, congrats. Your suggestion is a very good example of efficient programming with the HP16C. Cheers. Luiz (Brazil) ▼
Post: #6
04-11-2005, 03:00 PM
Quote:And see http://www.hpmuseum.org/artfmt.htm for more neat formatting tricks.
Regards,
Post: #8
04-11-2005, 03:37 PM
Thanks for the tip, I'am not used to poste often on this forum.
> Your suggestion is a very good example of efficient Patrice Torchet
Post: #9
04-11-2005, 04:07 PM
I think this is the IEEE 754 binary floating point format. The question was about the upcoming IEEE 754R decimal format. It is a kind of Huffman compressed BCD, with some bits carrying information on both the exponent and the coefficient (mantissa). This gives 16 digits of precision, with an exponent from -383 to 384. This format is designed to be hardware-friendly, so a decimal FPU can easily split it into BCD digits. The IEEE 754R guys think that decimal arithmetic will take over from binary. As I said, it is 5 KB of Java classes, and though RPN may be more compact, there is no way to squeeze it into an HP 16C.
Post: #10
04-11-2005, 11:45 AM
This quick and dirty HP16C program must do for the compressor !
001- LBL C STO 0 8 8 8 AND STO 2 RCL 0 XOR Patrice Torchet ▼
Post: #11
04-11-2005, 12:06 PM
For a better formatting, go to new line at every step number. 001- 010- 020- 030- 034- 041- 044- 050- 056- 063- 070- 077- 086- 099- |