What does the HP20S function "yx" do??? « Next Oldest | Next Newest »

 ▼ Eduardo Abril de Fontcuberta Junior Member Posts: 2 Threads: 1 Joined: Jan 1970 03-08-2005, 04:52 PM 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 ▼ George Rose Junior Member Posts: 28 Threads: 10 Joined: Jan 1970 03-08-2005, 05:34 PM 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. Karl Schneider Posting Freak Posts: 1,792 Threads: 62 Joined: Jan 2005 03-09-2005, 03:16 AM 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 ▼ Julián Miranda (Spain) Member Posts: 57 Threads: 3 Joined: Feb 2007 03-09-2005, 12:32 PM Well, it seems the key should be xy not yx. I think this has been commented before. ▼ Larry Corrado Member Posts: 99 Threads: 9 Joined: Apr 2013 03-09-2005, 01:33 PM 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 ▼ John Limpert Member Posts: 172 Threads: 13 Joined: Jul 2005 03-09-2005, 02:41 PM 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. ▼ Bill Wiese Senior Member Posts: 308 Threads: 26 Joined: Jul 2007 03-09-2005, 07:10 PM 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    [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:    [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 Eduardo Abril de Fontcuberta Junior Member Posts: 2 Threads: 1 Joined: Jan 1970 03-11-2005, 05:53 AM 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 496 12-10-2013, 06:49 PM Last Post: Han PCB pictures of a HP10B, HP20S or HP21S? Christoph Giesselink 1 247 12-17-2012, 10:19 PM Last Post: Randy RPN hp20s and lcd hp34c proposals Jose Poyan 11 761 04-29-2011, 08:17 PM Last Post: Scott Newell HP20S for over \$100... What!? Han 4 372 02-08-2006, 06:56 PM Last Post: Joe Edwards HP20s End of Production Walter B 2 233 11-04-2005, 06:54 PM Last Post: Norris HP20S Manual Wanted Walter B 3 306 11-21-2004, 01:27 AM Last Post: Walter B TVM program for HP20S Dia C. Tran 19 1,097 09-08-2003, 09:50 AM Last Post: Ron Ross x=4? Function Shawn 2 282 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 373 03-15-2002, 10:23 AM Last Post: Frank Implement 'AND' function with 'XOR' function. tal 4 385 12-13-2000, 05:55 AM Last Post: Steve (Australia)

Forum Jump: