The following warnings occurred:
Warning [2] Undefined array key 96062 - 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 96064 - 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 96065 - 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 96067 - 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 96097 - 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 96137 - 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 96140 - 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 96142 - 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 96142 - 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 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 96067 - 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





HP33s and HP32sII programmation difference



#9

First, excuse me for my bad english.

I just bought a HP33s as a replacement for my HP32sII which if fallen from my desk

I use the HP33s in RPN mode and I have just written a small program that I used 20 times a day with the 32sII

The aim of the program is to compute the total area in cm² of y circles of radius x (in mm)
This is very, very useful for my job (steel reinforcement in concrete)

I enter data in this manner : number of circles ENTER diameter in mm then XEQ A

The program :

A0001 LBL A
A0002 x²
A0003 400
A0004 /
A0005 pi
A0006 x
A0007 x

And that's all.

With the HP32sII the answer was only in the x register of the stack.
With the HP33s, the answer is in both register x and y. And this is a BIG problem for me (I use the program several times in a row and I sum the answers)
I have tried the program by entering manually the instructions, and so I only get the answer in the x register ! So my program is correct !

I've tried 36 tips in the program to change this (for example, A0008 R(low)). But with every tip I get answer in both X and Y or no answer at all

Precision : I begin data introduction when all registers of the stack are at zero

Does someone has an idea ?
Does the stack behave differently between HP32 and HP33 ?

Thanks a lot

David


#10

So the program is:

   A0001 LBL A 
A0002 x2
A0003 400
A0004 /
A0005 pi
A0006 x
A0007 x

correct?

You might want to put

   A0008  RTN
at the end. (With a "RTN", my copy of the above gives the answer in x only.)

(How is it there are 400 mm2 / cm2? Maybe I'm missing something . . . )

Anyway, a version that uses less stack would be:

   A0001 LBL A 
A0002 x2
A0003 x
A0004 pi
A0005 x
A0006 400
A0007 /
A0008 RTN

Hope it works for you . . .


Edited: 13 July 2006, 4:20 p.m.


#11

Now it works !

I've added a simple "A0008 RTN" statement and it works

Many thanks from Belgium !

David


#12

Hi David,

the RTN function is useful and sometimes but not always necessary. It takes the program pointer back to line000 and stops execution. It is a guaranteed way to stop at a certain place. Without it, the machine will continue to execute each succeeding line.

Now for another refinement:

If you put your program into memory so that it is the first program (starting immideatly after "PRGM TOP", then you don't need to hit "execute A" except for the 1st use. Since RTN will bring the pointer back to "PRGM TOP", all you need to do for the next run is enter the values, and press "R/S".

If you are doing summation, you could also put a "STO+A" command at the end of the program. As long as you clear A before beginning, you will have a an automatic summation in the A register, at the end of your series calculations.

Edited: 14 July 2006, 9:03 a.m.


#13

Thanks for the explanation

In fact the program worked well on the HP32sII without RTN, but the HP33s needs it. Strange, but it is so.
I was not aware of the role of the RTN statement. I must apply "RTFM" for myself...

Your tip with R/S works and you've made me win one key press ! Cool !
I was not fully aware of the role of R/S too...

For the sommation, your tip with STO+ is a good idea, but I rarely must sum more than 3 results, so this is not so useful.

Thanks to everybody who have read the posts


#14

If you take Paul Brogger's advice and conserve stack, then you'll be able to carry two previous results and a current result. (See my stack history table for an explanation.)

Edited: 14 July 2006, 10:23 a.m.

#15

my batteries died a few days ago. I'll put new ones in and try tonight.

You are entering the diameter in mm, not the radius.

You did not list the "RTN" final statement.

This *should * work identically.

It seems to me that you must have an <enter> command floating in the end of your sequence on the 33s. In RPN mode there would be no reason for it to DUP to the Y register.


Here is a step-by-step stack activity for your program:
(empty fields are zeros. Sorry for listing in "upside down".

Given 750 bars of 6mm Diameter rod:

750
ENT
6
x^2
400
/
3.14
X
X
RTN

x 0 750 750 6 36 400 0.09 3.14159 .28274 212.05
y 0 0 750 750 750 36 750 .09 750
z 0 0 750 750
t 0 0


#16

Quote:
You are entering the diameter in mm, not the radius.

That explains the 400 . . .


Possibly Related Threads…
Thread Author Replies Views Last Post
  HP Prime Collect/Factor difference bluesun08 3 1,447 10-29-2013, 09:36 AM
Last Post: Eddie W. Shore
  wp34s Emulator (-Infinity Difference) Barry Mead 1 1,157 07-24-2013, 03:52 PM
Last Post: pascal_meheut
  Cheap hp32sii in bad condition on sale on Taobao Waon Shinyoe (China) 1 1,193 03-01-2013, 08:35 PM
Last Post: Raymond Del Tondo
  HP32SII takes 120 to process a command Bruce Larrabee 2 1,157 08-25-2012, 05:42 AM
Last Post: Bruce Larrabee
  WP34S conversion, yet another but with a difference Geoff Quickfall 23 5,812 06-22-2012, 02:54 PM
Last Post: Marcus von Cube, Germany
  SY-41CL: Hardware Difference Between V2 and V3 Gerry Schultz 2 1,337 05-26-2012, 11:54 AM
Last Post: Monte Dalrymple
  Difference between new HP-49G+ and HP-50G x34 7 2,598 04-25-2012, 08:58 AM
Last Post: Software49g
  34s - stack lift with PI compared to 15c - difference - anyone else able to repeat this? Gene Wright 39 8,494 07-16-2011, 11:30 PM
Last Post: Jake Schwartz
  Difference in design for 25 and 25c exschr 2 1,167 07-04-2011, 04:36 PM
Last Post: exschr
  Is the HP33S is the only game in town? John Noble 28 7,058 11-16-2009, 10:18 AM
Last Post: John Noble

Forum Jump: