Results 1 to 10 of 10

Calculate Direction from U,V

Threaded View

  1. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,477

    Re: Calculate Direction from U,V

    It sounds to me like a basic "how to convert rectangular to polar coordinates" type problem. (basic tutorial with a calculator here http://www.analyzemath.com/Calculators/Rect_Polar.html).

    You are correct that this usually involves the arctan function (=ATAN() and ATAN2() functions in Excel see help file here http://office.microsoft.com/en-us/ex...in=HP010342680). When you say you " haven't had any success." in what specific ways has it failed? Have you gotten error values back? Incorrect values? Excel's trig functions operate on angles in radians, are you looking for results in degrees and did not realize that Excel used radians? Perhaps if you can explain to us what you have done that has not worked, we can better help.

    On edit: Another thing to consider - by convention, the arctan function usually returns angles in the 1st and 4th quadrant (-pi/2 to +pi/2). Your directions can probably cover the entire circle, so you may need an additional step in the algorithm if the desired angle is in the 2nd and 3rd quadrants.
    Last edited by MrShorty; 01-21-2013 at 05:00 PM.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1