Results 1 to 7 of 7

Thread: [RESOLVED] [2005] cos-1 (arccosine) of a number

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2006
    Posts
    42

    Resolved [RESOLVED] [2005] cos-1 (arccosine) of a number

    Hi all.

    Im trying to get the arccosine of a number eg.

    to pseudocode:
    angle=arccosine(0.23)

    I know its not rocket science, its just im not finding the help overly helpful!!

    thanks guys

  2. #2
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    343

    Re: [2005] cos-1 (arccosine) of a number

    ... What is arccosine? I did some Sine, Cosine, and Tangent in school, but never heard of Arccosine. Unless its Tangent -1

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2006
    Posts
    42

    Re: [2005] cos-1 (arccosine) of a number

    ArcCosine is the button you press to work out the interior angle or a traingle when you know the length of two of the sides.

    Its Shift Cos (for ArcCosine) on Casio calcs if that helps!

    cheers

  4. #4
    Frenzied Member stimbo's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,739

    Re: [2005] cos-1 (arccosine) of a number

    Okay, I've no idea if this is correct but have you checked out the Math functions in .NET.

    For example:

    VB Code:
    1. Dim myCo As Double = Math.Acos(0.29)
    2.         MessageBox.Show(myCo.ToString)

    I haven't checked out what Acos is exactly (something to do with cosine obviously) but there is also Math.Cos so perhaps the A stands for what you are looking for?

    Check out Math. and follow the intellisense
    Stim

    Free VB.NET Book Chapter
    Visual Basic 2005 Cookbook Sample Chapter

  5. #5

    Thread Starter
    Member
    Join Date
    Sep 2006
    Posts
    42

    Re: [2005] cos-1 (arccosine) of a number

    sorted, the confusion came from VB giving the result in radians not degrees as I thought it might
    All sorted!

    and its ACos that gives the arccosine

  6. #6
    Frenzied Member stimbo's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,739

    Re: [RESOLVED] [2005] cos-1 (arccosine) of a number

    I think that's the first Math question I may have ever got right in my ENTIRE life.
    Stim

    Free VB.NET Book Chapter
    Visual Basic 2005 Cookbook Sample Chapter

  7. #7
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [RESOLVED] [2005] cos-1 (arccosine) of a number

    From the help topic for the Math.Acos method:
    Return Value
    An angle, θ, measured in radians, such that 0 ≤θ≤π -or- NaN if d < -1 or d > 1.
    Remarks
    Multiply the return value by 180/π to convert from radians to degrees.
    No, not very helpful.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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