Wanted: The % Function to Work Properly on Next 50+g



#2

On graphing calculators, the % operator only divides the number by 100. So instead of $7.99 + 8.25% = $8.64, I get 8.0725.

Can we have the % operator work correctly on the next model please HP?


#3

It's a bit of a bother but in RPN I key 7.99 enter enter 8.25 then LS MTH 5 real, then OK then OK and it takes the percent, then + to add. works fine for me. Sam


#4

Quote:
It's a bit of a bother but in RPN I key 7.99 enter enter 8.25 then LS MTH 5 real, then OK then OK and it takes the percent, then + to add.

7.99 ENTER 8.25 g% + (on a 35s, for example)

What strange RPN calc did you use, Sam?

Even on a 48G, it's 7.99 ENTER ENTER 8.25 MTH REAL % + (so 2 extra keystrokes, being the just penalty for using such a big RPL cannon).


Edited: 28 June 2008, 8:12 a.m.

#5

Quote:
On graphing calculators, the % operator only divides the number by 100. So instead of $7.99 + 8.25% = $8.64, I get 8.0725.

Can we have the % operator work correctly on the next model please HP?


I do not at all understand your problem, Eddie. On the HP 48G and the HP 50, I get the correct answer by entering 7.99 on levels 1 and 2. Then entering 8.25 followed by % and then +. Ans: $8.65.

Just how does one go about getting a wrong answer on one of these units?

Jeff


#6

On other HP calcs the % function does not "eat" y, but leaves it untouched, so the extra enter is needed on the 50g. Sam

#7

Aren't most of the graphing calculators also programmable?

-Jonathan

#8

A TI-89 graphing calculator displays the behavior described by the Original Poster. If you enter "$7.99 + 8.25%" and evaluate it, you get 8.0725. On a TI-89, the % function is defined as taking one argument, which it divides by 100.

There is no "proper" definition of the % function; it is implemented differently on different calculators. In fact, the % function is commonly defined in two different ways on the *same* calculator. On a conventional non-programmable algebraic, the "%" key will perform either of two different functions, depending on the preceding operation.

For example, my cheap TI-30X Solar generates the following results:

For 7.99 + 8.25%, you get 0.6592 when you hit the % key

For 7.99 * 8.25%, you get 0.0825 when you hit the % key

For addition (and subtraction), the TI-30X assumes that X + Y% should be XY/100. This is the way that the Original Poster apparently wants the % key to work.

For multiplication (and division), the TI-30X assumes that X + Y% should be Y/100, which is a different function. The TI-89 defines the % function in this way only. On a programmable calculator, like the TI-89, you have to pick one or the other definition for %. You can't have it both ways, because it could lead to unpredictable results in programs.

On an HP-50G, the % key is defined totally differently from the TI-89. A 50G takes two arguments (not one), and calculates XY/100 (not Y/100). So %(7.99,8.25) is 0.66, which is the result that the Original Poster apparently expects. But in this case, the % function "eats" the 7.99 value, so you would have to use an extra ENTER to store it first.

On any graphing calculator, if you don't like the way that % is implemented, then it is trivial to write a simple program to replace it.

Edited: 30 June 2008, 6:48 p.m.


Possibly Related Threads...
Thread Author Replies Views Last Post
  HP50g: Writing a function that returns a function Chris de Castro 2 248 12-10-2013, 06:49 PM
Last Post: Han
  HP Prime... NOT meant to replace HP48,49,50 ? Chris Pem10 21 836 11-18-2013, 03:30 PM
Last Post: Chris Smith
  emu48 - copy stack doesn't work (as expected) Thomas Radtke 2 253 11-11-2013, 02:19 PM
Last Post: Thomas Radtke
  Another Prime mystery - templates don't work anymore Michael de Estrada 2 200 11-02-2013, 11:34 AM
Last Post: Michael de Estrada
  An easy course in using the HP16c-wanted- Frank 4 267 10-29-2013, 11:50 AM
Last Post: Mark Hardman
  Does the HP Prime software only work with Win 7/ 8 ? Michael de Estrada 3 250 10-12-2013, 02:52 PM
Last Post: John Ioannidis
  Back to School/Work/Other Calculator Poll Eddie W. Shore 63 2,735 09-12-2013, 06:03 AM
Last Post: bhtooefr
  ANN: A MacOSX Kermit program for HP48/49/50 calculators Paul Onions 2 185 09-08-2013, 04:55 AM
Last Post: Paul Onions
  HP-50 on Raspberry Pi? The HP-67 come true? Matti Övermark 10 392 07-30-2013, 09:40 PM
Last Post: Matti Övermark
  Precision DC-50 Mic 3 212 05-26-2013, 01:27 PM
Last Post: DavidM

Forum Jump: