I'm trying to turn the cube root program in the 42s's manual into an "x root y" program, but I'm having trouble understanding how to recall the Y register. Would please paste an nth-root program here?
x root y on hp42s
|
04-07-2012, 04:23 AM
04-07-2012, 04:39 AM
To recall X, Y, Z, T from the stack on th 42s, press [RCL] and [.] and you will be presented with soft key choices. The same for STO. Another way to access Y is to do X<>Y
04-07-2012, 11:51 PM
The following results match what I get with x|/y on the HP32 SII, except for the error messages. This can be optimized for size, of course.
00 { 41-Byte Prgm } P.S.: Real arguments only.
Edited: 8 Apr 2012, 12:00 a.m.
04-08-2012, 06:17 AM
Hi Gerson, Quote:Fine. And now try the cube root of 729. Does it still match ?-) Quote:My 35s here returns exactly -0,5. What does your 32sII say? I cannot imagine the result is any different. BTW, it can be shown that evaluating roots this way may exhibit an error up to several units in the last significant digit. That's why I was so eager about CUBERT and XROOT in the 34s. ;-) Dieter
04-08-2012, 06:22 AM
The 34S will still exhibit the same error in the last place, but due to the increased internal precision, it will likely be hidden resulting in an effective +/- 1 ULP in the result.
04-08-2012, 11:37 AM
Hello Dieter,
Quote: It practically matches: 8.99999999998.
Quote:So does my HP-32SII. "Practically" is the word I missed. My fault, sorry! Quote:It's a pity the latter is not available from the keyboard. IMHO, it should be a better companion to yx than LOGx, which of course should stay. Where to find room for both on the keyboard? I think ./, is superfluous as RDX. and RDX, are available under MODE. But I am aware time for keyboard layout suggestions is over... Gerson.
04-08-2012, 12:06 PM
Yes, that's why there are guard digits. With its 39-digit precision and 16 resp. 32 digit output, I think the 34s may look at all this quite relaxed. ;-) Dieter
04-08-2012, 12:17 PM
Gerson, Quote:Aaaaaha! ;-) But it gets even worse. Try the 6th root of 531441. In cases like these the error may be as large at 5 ULP.
Quote:I think XROOT would fit nicely on the (green shifted) sqrt / x^2 key. Oooops... guess what - that's exactly where it is placed on the 35s. :-) Quote:Walter always says that the 34s is a moving target. So nothing is fixed. ;-) Dieter
04-08-2012, 12:21 PM
Quote:Sim, Gerson - you're right with your second sentence. And the label ./, was caused by the fact that at design time our North American friends kept asking for an easy way to change the radix mark whenever they got a comma calculator ;-) And since we meanwhile put an alpha menu on said label, we can't change that easily (BTW I remember we had a discussion about that very label some (many?) months ago, but I don't remember when).
04-08-2012, 12:39 PM
Quote: On the other hand, this also allows for an easy way to accidentally change the radix mark. I missed that discussion, however.
04-08-2012, 12:43 PM
Quote:You're right again, but you can correct that accident most easily :-)
04-08-2012, 06:14 PM
Double precision carries 34 digits not 32 :-) - Pauli
04-08-2012, 06:16 PM
Quote: The keyboard layout is a little less fluid than everything else.
04-08-2012, 10:34 PM
... for that reason it's called 'double' ;-)
04-08-2012, 11:14 PM
It is called double because it occupies 128 bits of memory whereas single precision occupies 64 bits. There is logic here. In reality, we're using double and quadruple precision. Single precision being 32 bits which allows seven digits.
|
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
[HP Prime] Using n-root symbol and exponent problem | uklo | 7 | 3,006 |
11-11-2013, 01:39 AM Last Post: Alberto Candel |
|
Cubic root (-8) = 2 ? | Gilles Carpentier | 37 | 10,591 |
08-12-2013, 10:26 PM Last Post: jep2276 |
|
Square Root Simplifier for HP39gII | Mic | 4 | 2,043 |
03-11-2013, 08:25 AM Last Post: Eddie W. Shore |
|
Cube root on standard calculator | Thomas Klemm | 22 | 6,705 |
11-09-2012, 06:11 AM Last Post: Pierre |
|
HP42S | John Mosand | 5 | 2,552 |
07-22-2012, 03:13 AM Last Post: Les Koller |
|
HP42S graphics | Han | 2 | 1,591 |
07-20-2012, 12:23 AM Last Post: Raymond Del Tondo |
|
ROOT bug? HP 48S/48G | Eddie W. Shore | 8 | 4,003 |
07-13-2012, 07:05 PM Last Post: Eddie W. Shore |
|
HP42s ROM | aurelio | 18 | 8,823 |
06-26-2012, 09:36 AM Last Post: Thomas Klemm |
|
HP42s - deal? | Cristian Arezzini | 26 | 8,046 |
02-19-2012, 10:05 AM Last Post: Cristian Arezzini |
|
35s prompt for multi-character variables in program like "low footprint" root finder | Chris C | 8 | 3,039 |
02-14-2012, 06:52 PM Last Post: Chris C |