Hi all,
Is there any way to make the 50G return the real cube root of a negative number? (As opposed to one of the conjugates). I.E., Key in 8 ENTER 3 1/X Y^X and 2 at angle 60 is returned. Is there any way to force it to return 2? I've deselected allow complex in the CAS settings to no avail.
Thanks, Hal
HP 50G Cube Root of Negative

10142008, 08:56 PM
10152008, 12:51 AM
Hal  Jeremy Smith showed me the trick for this same problem on his HP50g at HHC 2008 last month: To obtain the realvalued cube root of 8, turn on "Approx" mode under CAS ("Complex" mode can be on or off.) How 'bout that convoluted answer the HP49G and HP50g give in exact mode? To wit: (8)^(1/3) = 2*exp((pi/3)*exp(i*pi/2)) Of course, this is simply (8)^(1/3) = 1 + i*sqrt(3)  KS
10152008, 02:07 AM
Hi Karl, thanks for your response,
Indeed, approx mode gives the real valued cube root when using the xth root of y key. If, however, I raise 8 to the 1/3 power using the y^x key, the complex root in quadrant 1 is returned (2 at angle 60). I suppose this is a non issue, as I don't mind using the xth root key. But this gets interesting now...
10152008, 03:16 AM
(x^2)^(2/3)
10152008, 10:57 AM
Quote:You're right, thank you...I meant to type in (x^2)^(1/3)
sorry about that
10152008, 05:46 PM
Quote: Hi, I have no HP50G, only a HP28S. As your 50g, my 28S returns one of the two conjugate solution when keying 8 CHS 3 INV ^ > (1.0000,1.7324)
A first way to get only the real root is to use the SOLVER menu or the ROOT function: 'y^3=8' 'y' 0 ROOT > 2.000
A short program may spare same keystrokes: \<< 'y' DUP 3 ^ ROT = SWAP 0 ROOT \>> 'RCRt' STO This little code determine the real cube root of any positive, null or negative real number at stack level 1:. Any complex number may lead to an "Bad Guess(es)" error stop, as ROOT may only handle real number.
A second easy way to get the real cubic root may be using absolute value of the negative number to avoid switching to complex solutions domain :
\<< DUP SIGN SWAP ABS 3 INV ^ * \>> 'CRt' STO
This second version is faster than the first one. Giving a complex number as entry returns a complex number Edited: 15 Oct 2008, 6:02 p.m.
10162008, 05:51 AM
Something curious. Settings: DEC C= 'X' (but DEC R~ is the same) If I type
8
I get 2*(1+i*sqr(3))/2 If I type
8
I get 2 This works in all the viewing options (STD, FIX at least). My 2c.  Antonio
10162008, 03:53 PM
Thanks Antonio and C.Ret for your inputs.
Putting a decimal point after the 8. forces a solution in approx mode which returns the real valued cube root (only if keyed in as 8.00 3 xrooty). If keyed in as 8.00 3 1/x y^x, it returns the cube root in quadrant 1 (2 at angle 60 degrees). This all started when I was grappling with the issue of plotting the function x^(2/3), and trying to figure out why there was no plot for negative x values. I have since arrived at the conclusion that the only way to get the calculator to plot an output for negative domain values of this function is to force (and I mean force!) the machine to execute the square first, then take the cube root by keying the function in as ((8^2)^1/3), which must be done algebraically (horrors!). Only then will this function plot for x values less than zero. It seems the TI89 returns the real valued cube root by default, so such draconian measures are not nessessary when plotting that function on that machine (it can simply be keyed in as 8^(2/3). My only consolation would be that if we wanted a complex cube root returned for a particular function, the roles would be reversed (maybe).
10162008, 06:52 PM
[1 0 0 3] PROOT 
« Next Oldest  Next Newest »
