Trigonometric reciprocal identity methods that return doubles in radians.
TrigReciprocal trigReciprocal = new TrigReciprocal(); // One way of getting the trigReciprocal class
Returns the cosecant of a double in radians
trigReciprocal.csc(1); // Returns 1.1883951057781212 radians as a double
trigReciprocal.csc(0); // Returns Double.NaN since 1 ÷ sin(0) is equal to 1 ÷ 0, which is undefined
Returns the secant of a double in radians
trigReciprocal.sec(1); // Returns 1.8508157176809255 radians as a double
trigReciprocal.sec(0); // Returns 1 radian as a double since 1 ÷ cos(1) is equal to 1 ÷ 1, which is 1
Returns the cotangent of a double in radians
trigReciprocal.cot(1); // Returns 0.6420926159343306 radians as a double
trigReciprocal.cot(0); // Returns Double.NaN since 1 ÷ tan(0) is equal to 1 ÷ 0, which is undefined
This repository contains the MIT license. You must give credit if you are going to use its source code.