Need help with java

kaymin

Senior member
Jul 21, 2001
646
0
0
How do i use cos^-1 in java?

i have the adj/hyp, no i need to plug that into the arccos to find the angle...

so what'st he format for it?

thanks
 

Beattie

Golden Member
Sep 6, 2001
1,774
0
0


Math.cos(x);

I don't remember what the inverse cosine function is.... it's been a while.. but it's probably just the first 3 letters of that function. Ooh and remember to import the math library.