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: Re: Adding Vectors -- Newbie help please

  • To: mathgroup at
  • Subject: [mg52083] Re: [mg52023] Re: Adding Vectors -- Newbie help please
  • From: yehuda ben-shimol <yehuda at>
  • Date: Wed, 10 Nov 2004 04:45:23 -0500 (EST)
  • References: <cmfc9b$7k3$> <cmhut5$ppb$> <>
  • Sender: owner-wri-mathgroup at

I can do 1+1=2 much faster then a typing it on a calculator
and probably I can multiply 100*333 faster on a calculator then on 
Mathematica (assuming that the Kernel should be uploaded)
But that seems to be all (this is only and example).
If you would take few minutes to look at the list or at the Mathematica 
book  you probably would find out that you can do MUCH MUCH more with 
Mathematica then you can do with your scientific calculator (as advanced 
it would be).
I assume that you come for the EE or closely related field due to the 
units  in your simple question. If you keep using Mathematica you will 
find out that you can use it for engineering tasks much better than 
other "competing" scientific softwares.
So, PLEASE, next time just focus on what you don't know and we will do 
our best to help you.
In addition, another good place for students questions is at
A complete solution for your question is given at R. Maeder's book 
"Programming in Mathematica"
good luck

motz art wrote:

>Ok; but I was hoping that there is a simpler way than the
>following method  to add  two ac voltage vectors (for example):  
>                               (220V, 225 degrees)
>                               (100V, 16 degrees)
>Clear[r, x, y, Theta, rect, polar]
>rect[r_,Theta_] := { r Cos[Theta Pi/180] , r  Sin[Theta Pi/180]}
>polar[x_, y_] := {Sqrt[x^2 + y^2], ArcTan[x, y]180/Pi}
>(* Input vectors here *)
>v1 := {220, 225};
>v2 := {100, 16};
>r1:= rect[v1[[1]], v1[[2]] ] // N;
>r2:= rect[v2[[1]], v2[[2]] ] // N;
>rt := p1 + p2
>polar[rt[[1]], rt[[2]]] // N
>This just seems so cumbersome, especially when compared to a
>scientific calculator.
>On Sat, 6 Nov 2004 07:36:05 +0000 (UTC), David Bailey
><dave at> wrote:
>>motz art wrote:
>>>Mathematica v5: How can I input vectors in polar form and
>>>rectangular form?  
>>>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: newbie question DSolve
  • Next by Date: Re: Re: Re: MathGroup /: Descriptive headings
  • Previous by thread: Re: Adding Vectors -- Newbie help please
  • Next by thread: Re: Adding Vectors -- Newbie help please