Here are the solutions to such an equation in
the form you want.
sols = ExpToTrig[z /. Solve[z^99 == 1, z]]
And here they are in the plane.
ListPlot[Table[{Re[z], Im[z]}, {z, sols}],
AspectRatio -> Automatic]
Mark McClure
nthRoots.nb
may help you. You can download it from the Files page at my web site:
http://www.math.umass.edu/~murray/Math_421_Eisenberg/
For its graphics, that notebook relies upon David Park's "Presentations"
Mathematica application. In case that's not available to you, on that
same Files page I have a pdf version of the evaluated notebook.
dragonman wrote:
> I want the solutions to x^n=1 to appear in the form r(cos theta +isin
> theta) and then to graph them on an Argand diagram. Any advice given
> would be much appreciated.
>
--
Murray Eisenberg mur...@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
This board is not here to answer homework questions - what would be the
point?
David Bailey
http://www.dbaileyconsultancy.co.uk
RootPlotStyle[poly_, z_] :=
ListPlot[{Re[z], Im[z]} /.
NSolve[poly == 0, z], AspectRatio ->
Automatic, PlotStyle ->
{PointSize[0.06], Hue[0.8521]}] /;
PolynomialQ[poly, z]
n = 7;
poly = z^n - 1;
sol = Solve[poly == 0, z] /.
(a_ -> b_) :> a -> ComplexExpand[b];
z /. sol
RootPlotStyle[poly, z]
n = 24;
poly = z^n - 1;
sol = Solve[poly == 0, z] /.
(a_ -> b_) :> a -> ComplexExpand[b];
TableForm[z /. sol]
RootPlotStyle[poly, z]
For goodness sake I am a teacher. Feel free to google me. Its
Mathematica's representation of solutions I wanted. Feel free to
apologise any time.
Many thanks to the helpful posters above.
http://blackbook.mcs.st-and.ac.uk/~Peter/djmpark/html/
at the University of St Andrews School of Mathematics and Statistics:
There are both Mathematica notebooks and PDF files there for solutions to
various MathGroup questions.
The solution uses the ComplexPolar representation of complex numbers that is
in Presentations. There are also routines for expanding ComplexPolar
expressions and for converting to and from Cartesian form. This is often
used in the introductory part of a complex analysis course and then dropped
for the exponential representation. The polar notation is however quite
useful in calculations, for displaying complex numbers and in Presentations
for specifying iterators in polar plots. And, of course, it is also useful
for didactic purposes.
David Park
djm...@comcast.net
http://home.comcast.net/~djmpark/
>
> For goodness sake I am a teacher. Feel free to google me. Its
> Mathematica's representation of solutions I wanted. Feel free to
> apologise any time.
> Many thanks to the helpful posters above.
A very nice reply! -- and one I'd hope may have some impact on this
group.
Out of curiosity, did your personal background or vocabulary
(pre-Mathematica) include some conceptual understanding of any of the
terms
local vs global variables
functional vs procedural programming
mapping
as they are used in Mathematica?
I am a teacher.
RootPlotStyle[poly_, z_, ptsize_] :=
Module[{pts = {Re[z], Im[z]} /. NSolve[poly == 0, z], limits},
limits = (ptsize {-1, 1} + Through[{Min, Max}@#]) & /@
Transpose@pts;
ListPlot[pts, AspectRatio -> Automatic,
PlotStyle -> {PointSize[ptsize], Hue[0.8521]}, PlotRange -> limits]
] /; PolynomialQ[poly, z]
n = 7;
poly = z^n - 1;
sol = Solve[poly == 0, z] /. (a_ -> b_) :> a -> ComplexExpand[b];
z /. sol
RootPlotStyle[poly, z, .06]
and
n = 24;
poly = z^n - 1;
sol = Solve[poly == 0, z] /. (a_ -> b_) :> a -> ComplexExpand[b];
Grid@Partition[z /. sol // Simplify, 4]
RootPlotStyle[poly, z, .06]
Bobby
On Mon, 09 Nov 2009 04:45:22 -0600, ynb <wkfk...@yahoo.co.jp> wrote:
> On 11=E6=9C=887=E6=97=A5, =E5=8D=88=E5=BE=8C8:48, dragonman
> <morrisneedle.. .@gmail.com> wrote:
> RootPlotStyle[poly_, z_] :=
> ListPlot[{Re[z], Im[z]} /.
> NSolve[poly == 0, z], AspectRatio ->
> Automatic, PlotStyle ->
> {PointSize[0.06], Hue[0.8521]}] /;
> PolynomialQ[poly, z]
>
> n = 7;
> poly = z^n - 1;
> sol = Solve[poly == 0, z] /.
> (a_ -> b_) :> a -> ComplexExpand[b];
> z /. sol
> RootPlotStyle[poly, z]
>
> n = 24;
> poly = z^n - 1;
> sol = Solve[poly == 0, z] /.
> (a_ -> b_) :> a -> ComplexExpand[b];
> TableForm[z /. sol]
> RootPlotStyle[poly, z]
>
What do you think we should do with such questions, AES - simply reply
regardless?
David Park has given a solution, so I guess there is nothing more to be
said.
David Bailey
http://www.dbaileyconsultancy.co.uk
> Well I am sorry if I made a mistake here, but we do get a fair few
> students trying to get homework questions answered here. The usual
> response to such questions is along the lines of my original reply.
>
> What do you think we should do with such questions, AES - simply reply
> regardless?
>
> David Park has given a solution, so I guess there is nothing more to be
> said.
>
> David Bailey
> http://www.dbaileyconsultancy.co.uk
>
I will like to add that it is a matter of basic courtesy for someone posting a question to insure that:
(i) anyone answering it will not have to go into avoidable trouble of re-reformulating it using proper Mathematica syntax, guess missing data etc., etc.
(ii) the reasons for asking a question, be it research, commercial work or homework assignments etc. are clearly explained.
Nowadays I usually ignore questions that do not satisfy these conditions. I wish more people adopted a similar policy - answering certain kinds of questions may actually be doing more harm than good.
In other words, I think in this case David Bailey did exactly the right thing and has no need at all to apologise.
Andrzej Kozlowski
Seeing that in every post would be a lot of bother, and the issue doesn't
matter to me.
> In other words, I think in this case David Bailey did exactly the right
> thing and has no need at all to apologise.
Agreed. Even if David did the wrong thing, he's helping people for free,
with no compensation of any kind. To anyone who is unsatisfied, my advice
is: "Treat yourself to a full refund. No... make it a DOUBLE refund."
On both points, Steve Christensen makes the rules; nobody else.
Bobby
On Thu, 12 Nov 2009 05:08:20 -0600, Andrzej Kozlowski <ak...@mimuw.edu.pl>
wrote:
I guess my snappy tone was a fatigued response to someone who at the
time, I felt was making a harsh response to me. Thanks to all.