Hi Martin,
Welcome to JavaRanch. The sin, cos and tan functions along with their inverts are located in the Math class. To do what you want would be:
I'm not sure what you mean by
sin^(-1) == sec. The secant function is the reciprocal of the cosine so you would get it by doing something like:
All of these return doubles and take radians as their arguments. But if you have degrees the Math class also has a toRadians() method to do the conversion.
You should take a look at the API docs on the Math class.
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher