Re: plotting function w/ Im and Re vals

*To*: mathgroup at smc.vnet.net*Subject*: [mg20361] Re: [mg20325] plotting function w/ Im and Re vals*From*: BobHanlon at aol.com*Date*: Sun, 17 Oct 1999 02:45:37 -0400*Sender*: owner-wri-mathgroup at wolfram.com

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. >