My Math Forum  

Go Back   My Math Forum > Math Forums > Math Software

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

Reply
 
LinkBack Thread Tools Display Modes
February 1st, 2012, 08:44 AM   #1
 
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!
phoebe is offline  
 
February 1st, 2012, 01:40 PM   #2
Global Moderator
 
CRGreathouse's Avatar
 
Joined: Nov 2006
From: UTC -5

Posts: 12,862
Thanks: 94

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.
CRGreathouse is offline  
February 1st, 2012, 05:31 PM   #3
 
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.
phoebe is offline  
February 2nd, 2012, 09:17 AM   #4
Global Moderator
 
CRGreathouse's Avatar
 
Joined: Nov 2006
From: UTC -5

Posts: 12,862
Thanks: 94

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}]
CRGreathouse is offline  
Reply

  My Math Forum > Math Forums > Math Software

Tags
mathematica


Thread Tools
Display Modes


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





Copyright © 2014 My Math Forum. All rights reserved.