Skip to main content
1-Visitor
October 3, 2016
Question

Define angle from polar vector?

  • October 3, 2016
  • 4 replies
  • 4310 views

Hello

Once again a silly interface question: I have a vector in polar form. Now I could easily write down the real and the imaginary values down go on from there but I want to be able to define the angle of the vector so that I can use that angle later on. However I can not find a MathCad feature or some neat trick to get that angle defined. I have attached a picture with an example to show you what I mean.

Capture.JPG

I hope one of you have a neat solution. I use MathCad 3.1 by the way.


Best regards
Emil

4 replies

19-Tanzanite
October 4, 2016

How about atan(B/A)?

Alan

emürer1-VisitorAuthor
1-Visitor
October 4, 2016

Hello Alan

I thought about that but then i would have to be able to define the real and imaginary number as B and A in order to use that calculation and i also cannot find a way to define those?

Emil

21-Topaz II
October 4, 2016

dreiecke.jpg

25-Diamond I
October 4, 2016

Your "Hypo" would yield wrong results for negative values of a because you use atan and not atan2.

Furthermore I wonder as of the complicated way you define this function. Guess that

Hypo(a,b):= a + b *1i

would do the very same jobin a clearer way and more convenient!

As far as I understood the question, Emil was asking for a way to "get hold" on the angle, to store it in a variable and not just to display it, Thats the reason I suggested the usage of "arg" or "atan2" as two ways to achieve this goal in my answer below.

Werner

21-Topaz II
October 5, 2016

Thanks Werner,

did not know of the existence of atan2.

Your answers enlighten me more and more.

In reality, however, no one would dream of defining the measures of the sides of a triangle with negative values ...

25-Diamond I
October 4, 2016

Hope this helps:

12-Amethyst
October 4, 2016

Hi.

You have also the Graphing functions pol2xy and xy2pol

Best regards.

Alvaro.

FIG.gif