My Math Forum Mathematica

 Math Software Math Software - Mathematica, Matlab, Calculators, Graphing Software

 February 1st, 2012, 07:44 AM #1 Newbie   Joined: Nov 2011 Posts: 8 Thanks: 0 Mathematica I am trying to graph the equation 3Cos[t]+iSin[t] in Mathematica. I have no problem with the 3Cos[t]+Sin[t], but I cannot seem to make Mathematica recognize the i (nor I when I capitalize it). Is there some trick to getting it to plot this correctly? I am using the following: r[t_] = 3 Cos[t] + Sin[t]; PolarPlot[r[t], {t, -Pi/2, Pi/2}] Thanks!
 February 1st, 2012, 12:40 PM #2 Global Moderator     Joined: Nov 2006 From: UTC -5 Posts: 16,046 Thanks: 937 Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms Re: Mathematica i is I in Mathematica, but you don't need to use it at all if you're plotting parametrically: Code: ParametricPlot[{3 Cos[t], Sin[t]}, {t, -Pi/2, Pi/2}] I'm not sure if this is what you're trying to do, though. You write PolarPlot, but of course the radius can't be nonreal so I'm not sure how to adapt that.
 February 1st, 2012, 04:31 PM #3 Newbie   Joined: Nov 2011 Posts: 8 Thanks: 0 Re: Mathematica OK, it looks like I need to use parametricplot, but I need for the functions to be added together. I'll try that; thanks.
February 2nd, 2012, 08:17 AM   #4
Global Moderator

Joined: Nov 2006
From: UTC -5

Posts: 16,046
Thanks: 937

Math Focus: Number theory, computational mathematics, combinatorics, FOM, symbolic logic, TCS, algorithms
Re: Mathematica

Quote:
 Originally Posted by phoebe I need for the functions to be added together.
The argument, in your case, is {RealPart, ImaginaryPart}; if you like you can write
Code:
f[x_] := (*some complex function here*)
ParametricPlot[{Re[f[t]], Im[f[t]]}, {t, -Pi/2, Pi/2}]

 Tags mathematica

 Thread Tools Display Modes Linear Mode

 Similar Threads Thread Thread Starter Forum Replies Last Post The_Fool Calculus 5 July 10th, 2012 12:24 PM DANDIS Math Software 7 February 14th, 2012 09:27 AM sivela Math Software 2 April 15th, 2010 03:30 PM carXunderwater Math Software 1 March 4th, 2010 08:12 PM billymac00 Number Theory 5 September 6th, 2009 09:59 PM

 Contact - Home - Forums - Cryptocurrency Forum - Top