The following warnings occurred:
Warning [2] Undefined array key 71585 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 71623 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 71651 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 71652 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 71654 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 71659 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 71662 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 71664 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 71666 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 71668 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $thread - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $fid - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 71623 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 71666 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 71664 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 71668 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 71654 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $lang - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Attempt to read property "messages_in_thread" on null - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks





HP-16C limits?



#10

Can anyone code this:

http://www2.hursley.ibm.com/decimal/DPDecimal.html

[VPN]


#11

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.

#12

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
010- 7 7 X<>Y AND LST X + SR STO 1 RCL 2 X=0?
020- GTO 1 0 GSB 0 GSB 0 GSB 0 3 RLn STO 2 X<>I RCL 1
030- 8 + STO 1 GTO I
034- LBL 0 x<>Y 4 RRn X<>Y RRC RTN
041- LBL 1 RCL 1 RTN
044- LBL 3 4 6 RCL 1 OR RTN
050- LBL 7 6 6 RCL 1 OR RTN
056- LBL 2 2 ENTER 4 ENTER 6 GTO 8
063- LBL 4 4 ENTER 7 ENTER 6 GTO 8
070- LBL 6 6 ENTER 7 ENTER 6 GTO 8
077- LBL 5 2 6 ENTER 3 ENTER 6 0 GTO 8
086- LBL 8 RCL 1 XOR RCL 1 X<>Y XOR x<>Y LST X X<>Y RLn OR OR STO 1
099- RTN

Patrice Torchet


#13

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
010- 7 7 X<>Y AND LST X + SR STO 1 RCL 2 X=0?
020- GTO 1 0 GSB 0 GSB 0 GSB 0 3 RLn STO 2 X<>I RCL 1
030- 8 + STO 1 GTO I
034- LBL 0 x<>Y 4 RRn X<>Y RRC RTN
041- LBL 1 RCL 1 RTN
044- LBL 3 4 6 RCL 1 OR RTN
050- LBL 7 6 6 RCL 1 OR RTN
056- LBL 2 2 ENTER 4 ENTER 6 GTO 8
063- LBL 4 4 ENTER 7 ENTER 6 GTO 8
070- LBL 6 6 ENTER 7 ENTER 6 GTO 8
077- LBL 5 2 6 ENTER 3 ENTER 6 0 GTO 8
086- LBL 8 RCL 1 XOR RCL 1 X<>Y XOR x<>Y LST X X<>Y RLn OR OR STO 1
099- RTN

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  XOR
010- 7 7 X<>Y AND LST X + SR STO 1 RCL 2 X=0?
020- GTO 1 0 GSB 0 GSB 0 GSB 0 3 RLn STO 2 X<>I RCL 1
030- 8 + STO 1 GTO I
034- LBL 0 x<>Y 4 RRn X<>Y RRC RTN
041- LBL 1 RCL 1 RTN
044- LBL 3 4 6 RCL 1 OR RTN
050- LBL 7 6 6 RCL 1 OR RTN
056- LBL 2 2 ENTER 4 ENTER 6 GTO 8
063- LBL 4 4 ENTER 7 ENTER 6 GTO 8
070- LBL 6 6 ENTER 7 ENTER 6 GTO 8
077- LBL 5 2 6 ENTER 3 ENTER 6 0 GTO 8
086- LBL 8 RCL 1 XOR RCL 1 X<>Y XOR x<>Y LST X X<>Y RLn OR OR STO 1
099- RTN [/pre]
and, of course, congrats. Your suggestion is a very good example of efficient programming with the HP16C.

Cheers.

Luiz (Brazil)


#14

Quote:
To accomplish this, add a [pre] in the begining of the listing, and a [/pre] in the end of it.

And see http://www.hpmuseum.org/artfmt.htm for more neat formatting tricks.

Regards,
James


#15

Thanks, I will read it.

#16

Thanks for the tip, I'am not used to poste often on this forum.

> Your suggestion is a very good example of efficient
>programming with the HP16C.
Yes but I think we can do better, as I said, it is quick and dirty.

Patrice Torchet

#17

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.

#18

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
010- 7 7 X<>Y AND LST X + SR STO 1 RCL 2 X=0?
020- GTO 1 0 GSB 0 GSB 0 GSB 0 3 RLn STO 2 X<>I RCL 1
030- 8 + STO 1 GTO I
034- LBL 0 x<>Y 4 RRn X<>Y RRC RTN
041- LBL 1 RCL 1 RTN
044- LBL 3 4 6 RCL 1 OR RTN
050- LBL 7 6 6 RCL 1 OR RTN
056- LBL 2 2 ENTER 4 ENTER 6 GTO 8
063- LBL 4 4 ENTER 7 ENTER 6 GTO 8
070- LBL 6 6 ENTER 7 ENTER 6 GTO 8
077- LBL 5 2 6 ENTER 3 ENTER 6 0 GTO 8
086- LBL 8 RCL 1 XOR RCL 1 X<>Y XOR x<>Y LST X X<>Y RLn OR OR STO 1
099- RTN

Patrice Torchet


#19

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-


Possibly Related Threads…
Thread Author Replies Views Last Post
  Bought a 16C to compensate a little Eelco Rouw 23 7,771 12-07-2013, 01:26 PM
Last Post: Eelco Rouw
  Shiny new 16C! Keith Midson 7 2,494 10-27-2013, 02:22 AM
Last Post: Keith Midson
  Joys of eBay: HP-32S, HP-32SII, HP-42S, HP-16C, ... Sasu Mattila 7 2,462 09-23-2013, 04:39 PM
Last Post: Julián Miranda (Spain)
  HP-16C simulator fhub 12 3,409 06-30-2013, 10:14 PM
Last Post: Robert Prosperi
  Program for HP-16c... Leonid 9 2,956 06-07-2013, 08:51 PM
Last Post: David Hayden
  HP 11C/12C/15C/16C case Philippe Cairic 4 2,058 11-06-2012, 06:04 PM
Last Post: Matt Agajanian
  Understanding HP-16C integer division Jimi 18 5,034 10-16-2012, 09:13 PM
Last Post: Eddie W. Shore
  wp 34s exponent limits? wildpig 26 5,704 08-28-2012, 02:48 PM
Last Post: Marcus von Cube, Germany
  Limits of Indirect Addressing on the WP34S Namir 11 3,038 08-01-2012, 11:53 PM
Last Post: Namir
  WP34S - Flashing Limits Les Wright 13 3,177 03-12-2012, 10:53 AM
Last Post: Marcus von Cube, Germany

Forum Jump: