Skip to content

Trigonometric reciprocal identity methods that return doubles in radians

License

Notifications You must be signed in to change notification settings

Synthird/Trigonometric-reciprocal-identities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trigonometric reciprocal identities

Trigonometric reciprocal identity methods that return doubles in radians.

TrigReciprocal trigReciprocal = new TrigReciprocal(); // One way of getting the trigReciprocal class

trigReciprocal methods

trigReciprocal.csc(double number) | Returns a double

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

trigReciprocal.sec(double number) | Returns a double

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

trigReciprocal.cot(double number) | Returns a double

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

License

This repository contains the MIT license. You must give credit if you are going to use its source code.

About

Trigonometric reciprocal identity methods that return doubles in radians

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages