Results 1 to 6 of 6

Thread: Calculate Tangent in VB.NET ***RESOLVED***

  1. #1

    Thread Starter
    Addicted Member Halon's Avatar
    Join Date
    Oct 2002
    Location
    under desk choking on rage
    Posts
    228

    Calculate Tangent in VB.NET ***RESOLVED***

    I am trying to figure out the azymuth betwen two points using the following

    azymuth = 90 - (tanE-1(DeltaN/DeltaE)

    i have been given the answer of 87.7930 when the delatN is 10 and the DeltaE is 259.58 but i have no idea how to get the answer.

    System.Math.Tan(10/259.58) and i get 0.03854283 when the anwer should be 2.2062

    I know tan is to be raised to the neg1 exponent, is that implied in the tangent function?I can't evn get my calculato to come up with the right answer.

    Help!

    Thanks

    Completely lost in trig

    PS - i also posted this to the maths forum but i think it should be here

    Last edited by Halon; Feb 23rd, 2004 at 04:39 PM.
    Soylent Green tastes like chicken

  2. #2
    PowerPoster SuperSparks's Avatar
    Join Date
    May 2003
    Location
    London, England
    Posts
    265
    You need to convert the default radians to degrees. Then your 0.03854283 will come out as 2.2.

    Radians * (180 / Math.PI) should do it.
    Nick.

  3. #3

    Thread Starter
    Addicted Member Halon's Avatar
    Join Date
    Oct 2002
    Location
    under desk choking on rage
    Posts
    228
    Right On!

    Where do i plug that formul into mine?
    Soylent Green tastes like chicken

  4. #4
    PowerPoster SuperSparks's Avatar
    Join Date
    May 2003
    Location
    London, England
    Posts
    265
    Try this:

    azymuth = 90 - (tanE-1(DeltaN/DeltaE)
    azymuth *= (180 / System.Math.PI)
    Nick.

  5. #5

    Thread Starter
    Addicted Member Halon's Avatar
    Join Date
    Oct 2002
    Location
    under desk choking on rage
    Posts
    228
    Can't get it to work but i will play with it .... thanks!!
    Soylent Green tastes like chicken

  6. #6

    Thread Starter
    Addicted Member Halon's Avatar
    Join Date
    Oct 2002
    Location
    under desk choking on rage
    Posts
    228
    got it thanks!! You were right on the money
    Soylent Green tastes like chicken

Posting Permissions

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



Click Here to Expand Forum to Full Width