MathGroup Archive 1999

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

Search the Archive

Re: plotting function w/ Im and Re vals


Lana,

f[x_] := Sqrt[x]

Plot[{Re[f[x]], Im[f[x]]}, {x, -5, 5}, 
    PlotStyle -> {RGBColor[0, 0, 1], RGBColor[1, 0, 0]}];

f[x_] := Log[x]

Plot[{Re[f[x]], Im[f[x]]}, {x, -5, 5}, 
    PlotStyle -> {RGBColor[0, 0, 1], RGBColor[1, 0, 0]}];

Bob Hanlon
In a message dated 10/16/1999 4:31:41 AM, lanalee at aludra.usc.edu writes:

>I have a function with Real and Complex parts.  What is the easiest way
>I
>can plot the function?  What I'd like to do is have the plots of the Real
>and Complex superimposed on one graph.
>


  • Prev by Date: Re: Questions on Plotting A Graph
  • Next by Date: Re: Why doesn't this work?
  • Previous by thread: plotting function w/ Im and Re vals
  • Next by thread: Re: plotting function w/ Im and Re vals