Results 1 to 6 of 6

Thread: cos(A)=0.15425~~~

  1. #1

    Thread Starter
    Lively Member chxxangie's Avatar
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    79

    cos(A)=0.15425~~~

    cos(A)=0.15425
    how to get A value?

  2. #2
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: cos(A)=0.15425~~~

    do you have msdn library installed? have you tried searching there first?

  3. #3
    Lively Member
    Join Date
    Jul 2007
    Posts
    78

    Re: cos(A)=0.15425~~~

    hi,
    what is A?
    and u can get value like

    Cos(0.15425)

    which returns double value.

  4. #4

    Thread Starter
    Lively Member chxxangie's Avatar
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    79

    Re: cos(A)=0.15425~~~

    i didn't install the msdn library...
    what i want to know is, how to get the A (is an angle) value.

    cos(A)=0.15425 (the 0.15425 is in radian, not degree).............

  5. #5
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: cos(A)=0.15425~~~

    Code:
    Private Sub Command1_Click()
        MsgBox "A = " & ArcCos(0.15425)
    End Sub
    
    Function ArcCos(X As Double) As Double
        ArcCos = Atn(-X / Sqr(-X * X + 1)) + 2 * Atn(1)
    End Function

  6. #6
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431

    Re: cos(A)=0.15425~~~

    you might want to add in some error handling, since the inverse cosine is only defined for inputs between -1 and 1. Also, ArcCos(1) = 0, ArcCos(-1) = pi
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

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