calculas_math
v1.0.0
Published
This package contains mathamatical methods
Readme
/**
- A utility object that provides basic trigonometric methods using JavaScript's Math object.
- Methods:
sin(angleInRadians): Calculates the sine of the given angle in radians.
cos(angleInRadians): Calculates the cosine of the given angle in radians.
tan(angleInRadians): Calculates the tangent of the given angle in radians.
asin(value): Calculates the arcsine (inverse sine) of the given value.
acos(value): Calculates the arccosine (inverse cosine) of the given value.
atan(value): Calculates the arctangent (inverse tangent) of the given value.
atan2(y, x): Calculates the arctangent of the quotient of its arguments (y / x).
sinh(angleInRadians): Calculates the hyperbolic sine of the given angle in radians.
cosh(angleInRadians): Calculates the hyperbolic cosine of the given angle in radians.
tanh(angleInRadians): Calculates the hyperbolic tangent of the given angle in radians.
degreesToRadians(degrees): Converts an angle from degrees to radians.
radiansToDegrees(radians): Converts an angle from radians to degrees.
- Example Usage:
- console.log(Trigonometry.sin(Math.PI / 2)); // 1
- console.log(Trigonometry.degreesToRadians(180)); // 3.141592653589793
*/
