Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: Adding Vectors -- Newbie help please

  • To: mathgroup at
  • Subject: [mg51992] Re: Adding Vectors -- Newbie help please
  • From: David Bailey <dave at>
  • Date: Sat, 6 Nov 2004 02:08:34 -0500 (EST)
  • References: <cmfc9b$7k3$>
  • Sender: owner-wri-mathgroup at

motz art wrote:
> Mathematica v5: How can I input vectors in polar form and
> rectangular form?  
> Example:
> a:= (r1, theta1) + (r2, theta2)  Polar form.
> b:= (re1 , j* im1) + (re2, j*im2) Rectangular form
> I know this should be pretty basic, but I haven't  found examples
> of this kind of input.
> I would guess it would be something like: 
>           Polar[magnitude, phase]
>           Rectangular[Real, Imaginary]
> but, apparently not.  (This is for  electronics engineering.)
> Thanks for any help.
You can easily write a function to convert from polar to coordinate form:

FromPolar[r_, theta_] := {r Cos[theta], r Sin[theta]}

Note that this assumes your angles are measured in radians. Once all 
your vectors are in coordinate form you can add/subtract then directly:





David Bailey

  • Prev by Date: Re: ListContourPlot - different levels
  • Next by Date: Re: Garbage collection problem
  • Previous by thread: Adding Vectors -- Newbie help please
  • Next by thread: Re: Adding Vectors -- Newbie help please