MathGroup Archive 2000

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

Search the Archive

Re: Plotting complex functions

  • To: mathgroup at
  • Subject: [mg23985] Re: Plotting complex functions
  • From: "Kevin J. McCann" <kevinmccann at>
  • Date: Mon, 19 Jun 2000 01:45:28 -0400 (EDT)
  • References: <8ihvf8$>
  • Sender: owner-wri-mathgroup at

Matthijs ,

In order to plot, the function has to produce numbers. Your example below
has two undetermined integration constants; so, the result will not produce
a number. Try the example below. I picked the IC's so that the result would
be complex.

Paste these into a NB

f=y/.DSolve[{y''[t] + y'[t] + y[t] == 0,y[0]==I,y'[0]==1}, y, t]

ParametricPlot[{Re[f[x]], Im[f[x]]}, {x, 0, 10},
   Epilog -> {RGBColor[1, 0, 0], AbsolutePointSize[5],
Point[{Re[f[0.]], Im[f[0.]]}]}];



"Matthijs Sypkens Smit" <matthijs at> wrote in message
news:8ihvf8$lgj at
> Hi,
> How do I make a plot of a complex-valued function, such as y after
> DSolve[y''[t] + y'[t] + y[t] == 0, y, t]
> I've tried a ParametricPlot with Re[y[t] and Im[y[t], but either that
> doesn't work or I'm doing it wrong. Any pointers or an example?
> --
> Matthijs

  • Prev by Date: Re: Annoying "Hand"/"Glove" in Mathematica 4 for Linux
  • Next by Date: Re: converting 2.2.3 (ma-notebooks) to 3.0 or 4.0 (nb)
  • Previous by thread: Plotting complex functions
  • Next by thread: Re: Plotting complex functions