Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Mathematica equivalent complexplot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg57845] Re: Mathematica equivalent complexplot
  • From: "David Park" <djmp at earthlink.net>
  • Date: Fri, 10 Jun 2005 02:29:09 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Ron,

I think you are attempting to plot a curve in the complex plane. You can do
it as follows.

Needs["Graphics`Colors`"]

f[x_] = Sin[x + I]
I*Sinh[1 - I*x]

(Mathematica automatically transformed the Sin expression.)

ParametricPlot[{Re[f[x]], Im[f[x]]}, {x, -Pi, Pi},
    AspectRatio -> Automatic,
    PlotLabel -> SequenceForm["Curve ", f[x], " in Complex Plane"],
    Frame -> True,
    FrameLabel -> {"Re", "Im"},
    FrameTicks -> Automatic,
    Background -> Linen,
    ImageSize -> 400];

For those who have the complex graphics package, Cardano3, from my web site
below, there is a ComplexCurve routine (suggested by Murray Eisenberg).
Cardano3 also requires DrawGraphics. Then the plot is done with...

Needs["Cardano3`ComplexGraphics`"]

ComplexGraphics[
    {ComplexCurve[f[x], {x, -Pi, Pi}]},
    PlotLabel -> SequenceForm["Curve ", f[x], " in Complex Plane"],
    FrameLabel -> {"Re", "Im"},
    FrameTicks -> Automatic,
    Background -> Linen];

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/


From: raf . [mailto:arawak1 at yahoo.com]
To: mathgroup at smc.vnet.net


This is a newbie question, I suppose. I've read as much as I can but cannot
find a straight forward way to implement the complexplot in
Mathematica 5.

An example call could be complexplot(sin(x+i),x=-Pi..Pi) where sin(x+i)
is a typical function f(x) that maps real to complex and -Pi..Pi is the
domain of f, a..b.  Of course, there are various plot options which can
follow and would be included before the closing paren but I think I can
handle that.

So any help would be appreciated.

Thanks much for the response.

Ron Francis




  • Prev by Date: Re: goto and label (cont)
  • Next by Date: Re: Getting simple answers from Reduce, ComplexExpand and FullSimplify
  • Previous by thread: Re: Mathematica equivalent complexplot
  • Next by thread: Re: Re: Mathematica equivalent complexplot