does java have the trig functions 'sec, cosec, cot' and also their inverses
'arcsec, arcosec & arcot' ?
i am paricularly interested in 'arc cot'
thanks
jeremy watts
sec z = 1/cos z
csc z = 1/sin z
cot z = 1/tan z
asec z = acos 1/z
acsc z = acos 1/z
acot z = atan 1/z
Just roll your own, I suppose....
>does java have the trig functions 'sec, cosec, cot' and also their inverses
>'arcsec, arcosec & arcot' ?
>
>i am paricularly interested in 'arc cot'
see http://mindprod.com/jgloss/trigonometry.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
In case it was not obvious:
For something like arcosec(value), you have to recognize that "a" ashould be
a value that is *not* between -1 and 1 . What you do is to take and then
call java.lang.Math.asin(1.0/a). Same goes for the arcsec / acos pair and
arccot / atan pair.
http://en.wikipedia.org/wiki/Trigonometric_function
http://java.sun.com/javase/6/docs/api/java/lang/Math.html
Just remember to never compute 1.0/theta and you should be OK.
Andrew