Complex Roots
2008-12-31 by joecolannino

Yahoo Groups archive
Archive for 50g.
Index last updated: 2026-03-30 00:59 UTC
Thread
2008-12-31 by joecolannino
2009-01-01 by Don Hart
--- On Wed, 12/31/08, joecolannino <joecolannino@...> wrote:
> From: joecolannino <joecolannino@...>
> Subject: [50g] Complex Roots
> To: 50g@yahoogroups.com
> Date: Wednesday, December 31, 2008, 1:15 PM
> Does anyone have a program written for the HP 50G that will
> give all
> complex roots of a number? For example,the cube roots of
> -1 are
> {[1+sqrt(3)]/2, -1, and [1-sqrt(3)]/2 } but the HP 50G
> will give only
> the first. Trying to evaluate the cube root of 2+11i it
> chokes
> altogether though the answers are clearly {2+i,
> -1.866+1.232i
> (approx), -0.1340-2.232i (approx)}.
>
> Joe
2009-01-01 by Jeremy Hawdon
Here is a little program for finding the approximate nth roots of a Gaussian integer:
%%HP: T(3)A(R)F(.);
\<< OVER ABS OVER XROOT UNROT SWAP ARG 0 PICK3 1 -
FOR j 2 \pi * j * OVER + i * PICK3 / EXP 4. PICK * 4. ROLLD
NEXT DROP NIP \->LIST
\<< \->NUM
\>> MAP
\>>
It takes z and n from the stack and returns a list of values for z^ (1/n)
Jeremy
From:
50g@yahoogroups.com [mailto: 50g@yahoogroups.com ]
On Behalf Of joecolannino
Sent: 31 December 2008 21:16
To: 50g@yahoogroups.com
Subject: [50g] Complex Roots
Does anyone have a program written for the HP 50G that
will give all
complex roots of a number? For example,the cube roots of -1 are
{[1+sqrt(3)] /2, -1, and [1-sqrt(3)]/ 2 } but the HP 50G will give only
the first. Trying to evaluate the cube root of 2+11i it chokes
altogether though the answers are clearly {2+i, -1.866+1.232i
(approx), -0.1340-2.232i (approx)}.
Joe
2009-01-01 by Joe Colannino
Don, that was really helpful. It will be easy enough to write a program to do this automatically. When I do so, I’ll share it with the group. Thanks again!
Joe
From:
50g@yahoogroups.com [mailto:50g@yahoogroups.com] On Behalf Of Don Hart
Sent: Wednesday, December 31, 2008
10:56 PM
To: 50g@yahoogroups.com
Subject: Re: [50g] Complex Roots
Make sure you're in complex & approx modes, then
SOLVEX the equation x^3 + 1 = 0
For the other case, SOLVEX the equation x^3-2-11*i=0
--- On Wed, 12/31/08, joecolannino <joecolannino@ sbcglobal. net>
wrote:
> From: joecolannino <joecolannino@ sbcglobal. net>
> Subject: [50g] Complex Roots
> To: 50g@yahoogroups. com
> Date: Wednesday, December 31, 2008, 1:15 PM
> Does anyone have a program written for the HP 50G that will
> give all
> complex roots of a number? For example,the cube roots of
> -1 are
> {[1+sqrt(3)] /2, -1, and [1-sqrt(3)]/ 2 } but the HP 50G
> will give only
> the first. Trying to evaluate the cube root of 2+11i it
> chokes
> altogether though the answers are clearly {2+i,
> -1.866+1.232i
> (approx), -0.1340-2.232i (approx)}.
>
> Joe
2009-01-01 by Juan C.
>>b can be real or complex and n an integer grater than 1.
>>
2009-01-03 by Don Hart
>to write a program to
> Don, that was really helpful. It will be easy enough
> do this automatically. When I do so, I'll share itwith the group. Thanks
> again!yahoogroups.com] On Behalf Of Don Hart
>
>
>
> Joe
>
>
>
> _____
>
> From: 50g@yahoogroups.com [mailto:50g@
> Sent: Wednesday, December 31, 2008 10:56 PMSOLVEX the equation x^3 + 1
> To: 50g@yahoogroups.com
> Subject: Re: [50g] Complex Roots
>
>
>
> Make sure you're in complex & approx modes, then
> = 0wrote:
>
> For the other case, SOLVEX the equation x^3-2-11*i=0
>
> --- On Wed, 12/31/08, joecolannino <joecolannino@
> <mailto:joecolannino%40sbcglobal.net> sbcglobal.net>
><mailto:joecolannino%40sbcglobal.net>
> > From: joecolannino <joecolannino@
> sbcglobal.net>com
> > Subject: [50g] Complex Roots
> > To: 50g@yahoogroups. <mailto:50g%40yahoogroups.com>
> > Date: Wednesday, December 31, 2008, 1:15 PMthat will
> > Does anyone have a program written for the HP 50G
> > give allroots of
> > complex roots of a number? For example,the cube
> > -1 are50G
> > {[1+sqrt(3)]/2, -1, and [1-sqrt(3)]/2 } but the HP
> > will give only2+11i it
> > the first. Trying to evaluate the cube root of
> > chokes
> > altogether though the answers are clearly {2+i,
> > -1.866+1.232i
> > (approx), -0.1340-2.232i (approx)}.
> >
> > Joe
>