What does the HP20S function "yx" do???



#2

I need to know what the "yx" (top roww of keys) do when you press it.
Example:
You enter a number = 89.25
divide it by 1.03510
press "yx" key
and then 4.85

and the result is 75.4995

What have I done with that key????

Thanks
Eduardo


#3

The function "yx" is y to the power of x. An easier example of y=2 and x=3 equals 2 x 2 x 2 = 8. So in your example 1.0351 yx 4.85 = 1.182127 and your first number of 89.25 divided by 1.182127 = 75.4995. Hope this helps. I wish I had the math background of most of the users of this forum to explain more eloquently.

#4

As George explained below, yx is the power function, "y**x" in Fortran or "pow(y,x)" in C.

Of course, with the mathematical precedence in the "Algebraic" HP-20S, you calculated

89.25 / (1.035104.85) = 75.4995

Is that what you intended? For,

(89.25 / 1.03510)4.85 = 2,442,225,117.82

-- KS


#5

Well, it seems the key should be xy not yx. I think this has been commented before.


#6

Julian,

I haven't seen the earlier discussion your refer to, but I think the reason for this "yx" order is the way we say the expression (at least in English.) For example, the expression m^n would be spoken as "m to the n power." The m is the first item mentioned, and then the exponent n.

Calculators are designed to accept the data in this same order, first the m value and then the n value. In an RPN machine, this means that the m gets pushed into the y location in the stack, with the power in x. Hence, yx is the reaonable way to label the key.

I, too, was a bit confused by this notation when I began using a calculator, but I finally saw the reasoning behind it and now perform this calculation without a second thought, simply keying the values in their"natural" order.

Hope this explanation is clear.

Regards,
Larry


#7

It was x^y on the HP-35. They switched it to y^x on the HP-80, HP's second pocket calculator. Looking at the old desktop RPN calculators, The HP-9100 didn't have x^y or y^x, a strange omission. The HP-9810A had x^y as an option. The HP-9815 had y^x. TI seems to have been consistent in using y^x on all of their early scientific calculators.


#8

Y^X - read as "y to the xth power" may not seem intuitive but it truly is - on both HP and TI calculators. For discussion, we can refer to the 'y' value by its real name, 'base', and the 'x' value by its real name, 'exponent'.

In fact, the name has to be 'weird' to have the arguments entered in 'natural' order.

Real HP calcs have a 4-level stack (X,Y,Z, and T registers), and also a LastX register too. So to perform this calc we key in

&nbsp&nbsp [B]base[/B] [ENTER] [B]exponent[/B] [Y^X]

After ENTER is hit, the base value is lifted to the Y register, and the X register receives the exponent.

On TI/AOS calcs, Y^X works similarly but with infix, not postfix notation:

&nbsp&nbsp [B]base[/B] [Y^X] [B]exponent[/B] [=]

On these calcs, the 'held value' - the base - gets stored in a "y" register pending calculation. (That's why you'll also see an [x<>y] (exchange x with y) on many of these calcs.


Bill Wiese
San Jose

#9

Thank you to all !!!!!
Eduardo


Possibly Related Threads...
Thread Author Replies Views Last Post
  HP50g: Writing a function that returns a function Chris de Castro 2 435 12-10-2013, 06:49 PM
Last Post: Han
  PCB pictures of a HP10B, HP20S or HP21S? Christoph Giesselink 1 218 12-17-2012, 10:19 PM
Last Post: Randy
  RPN hp20s and lcd hp34c proposals Jose Poyan 11 657 04-29-2011, 08:17 PM
Last Post: Scott Newell
  HP20S for over $100... What!? Han 4 317 02-08-2006, 06:56 PM
Last Post: Joe Edwards
  HP20s End of Production Walter B 2 196 11-04-2005, 06:54 PM
Last Post: Norris
  HP20S Manual Wanted Walter B 3 240 11-21-2004, 01:27 AM
Last Post: Walter B
  TVM program for HP20S Dia C. Tran 19 925 09-08-2003, 09:50 AM
Last Post: Ron Ross
  x=4? Function Shawn 2 235 10-01-2002, 10:12 AM
Last Post: Vieira, Luiz C. (Brazil)
  new student hp calc user would like to ask about hp20s lokhin 6 326 03-15-2002, 10:23 AM
Last Post: Frank
  Implement 'AND' function with 'XOR' function. tal 4 329 12-13-2000, 05:55 AM
Last Post: Steve (Australia)

Forum Jump: