Re: Complex Plot
- To: mathgroup at smc.vnet.net
- Subject: [mg17404] Re: Complex Plot
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Thu, 6 May 1999 02:44:17 -0400
- References: <7gjfsl$cpd@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Dana DeLouis <dana2 at email.msn.com> wrote in message news:7gjfsl$cpd at smc.vnet.net... > Hello. Is it possible to plot a complex function, such as: > > Cos[w t] + I Sin[w t] > > (The letter I is the complex letter I) > This should be the same as E^( I w t) > > A math book that I am studying plots this, but I can not find a way to do > this in Mathematica v3. > Thank you for any ideas. > Dana Dana w= 1+2I; ParametricPlot[ Evaluate[{Re[#],Im[#]}&[Cos[w t] + I Sin[w t]]], {t,0,3} ] ParametricPlot[ {Re[#],Im[#]}&[Cos[w t] + I Sin[w t]], {t,0,3} ] Also works, but you will get a message that it can't compile. Allan --------------------- Allan Hayes Mathematica Training and Consulting Leicester UK www.haystack.demon.co.uk hay at haystack.demon.co.uk Voice: +44 (0)116 271 4198 Fax: +44 (0)870 164 0565