|
-
Jul 24th, 2007, 04:07 AM
#1
Thread Starter
Lively Member
cos(A)=0.15425~~~
cos(A)=0.15425
how to get A value?
-
Jul 24th, 2007, 04:12 AM
#2
Re: cos(A)=0.15425~~~
do you have msdn library installed? have you tried searching there first?
-
Jul 24th, 2007, 04:13 AM
#3
Lively Member
Re: cos(A)=0.15425~~~
hi,
what is A?
and u can get value like
Cos(0.15425)
which returns double value.
-
Jul 24th, 2007, 04:20 AM
#4
Thread Starter
Lively Member
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).............
-
Jul 24th, 2007, 04:41 AM
#5
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
-
Jul 24th, 2007, 05:24 AM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|