Trigonometric reciprocal identity methods that return radians as doubles.
You can access the trigReciprocal class in the src folder or by clicking here.
Important
The trigReciprocal class must be inside your project before any methods can be used.
// One way of getting the trigReciprocal class inside your project. This requires the class to be in the same folder as the file using this code.
TrigReciprocal trigReciprocal = new TrigReciprocal();
Returns the cosecant of numberInRadians.
trigReciprocal.csc(1.0); // Returns 1.1883951057781212 radians as a double.
trigReciprocal.csc(0.0); // Returns Double.NaN due to division by 0.
Returns the secant of numberInRadians.
trigReciprocal.sec(1.0); // Returns 1.8508157176809255 radians as a double.
trigReciprocal.sec(0.0); // Returns 1 radian as a double.
Returns the cotangent of numberInRadians.
trigReciprocal.cot(1.0); // Returns 0.6420926159343306 radians as a double.
trigReciprocal.cot(0.0); // Returns Double.NaN due to division by 0.