Class trigonometry

java.lang.Object
mathvoyage.trig.trigonometry

public class trigonometry extends Object
voyager.trigonometry.java
Author:
Tahsin Islam
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    arccos(double x)
    Returns the arccosine of a number.
    double
    arccosec(double x)
    Returns the arcosec of a number.
    double
    arccosecRad(double x)
    Returns the arcosec of a number.
    double
    arccosRad(double x)
    Returns the arccosine of a number.
    double
    arccot(double x)
    Returns the arccotangent of a number.
    double
    arccotRad(double x)
    Returns the arccotangent of a number.
    double
    arcsec(double x)
    Returns the arcsec of a number.
    double
    arcsecRad(double x)
    Returns the arcsec of a number.
    double
    arcsin(double x)
    Returns the arcsine of a number.
    double
    arcsinRad(double x)
    Returns the arcsine of a number.
    double
    arctan(double x)
    Returns the arctangent of a number.
    double
    arctanRad(double x)
    Returns the arctangent of a number.
    double
    cos(double angleDegree)
    Returns the cosine of an angle given in degree.
    double
    cosec(double angleDegree)
    Returns the cosecant of an angle given in degree.
    double
    cosecRad(double angleRadian)
    Returns the cosecant of an angle given in radian.
    double
    cosRad(double angleRadian)
    Returns the cosine of an angle given in radian.
    double
    cot(double angleDegree)
    Returns the cotangent of an angle given in degree.
    double
    cotRad(double angleRadian)
    Returns the cotangent of an angle given in radian.
    double
    degreeToRadian(double angleDegree)
    Returns the conversion of degree to radian.
    Returns the singleton instance of this class.
    static double
    radianToDegree(double angleRadian)
    Returns the conversion of radian to degree.
    double
    sec(double angleDegree)
    Returns the secant of an angle given in degree.
    double
    secRad(double angleRadian)
    Returns the secant of an angle given in radian.
    double
    sin(double angleDegree)
    Returns the sine of an angle given in degree.
    double
    sinRad(double angleRadian)
    Returns the sine of an angle given in radian.
    double
    tan(double angleDegree)
    Returns the tangent of an angle given in degree.
    double
    tanRad(double angleRadian)
    Returns the tangent of an angle given in radian.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getInstance

      public static trigonometry getInstance()
      Returns the singleton instance of this class.
      Returns:
      The singleton instance
    • degreeToRadian

      public double degreeToRadian(double angleDegree)
      Returns the conversion of degree to radian.
      Parameters:
      angleDegree - The angle in degree
      Returns:
      The angle in radian
    • radianToDegree

      public static double radianToDegree(double angleRadian)
      Returns the conversion of radian to degree.
      Parameters:
      angleRadian - The angle in radian
      Returns:
      double
    • sinRad

      public double sinRad(double angleRadian)
      Returns the sine of an angle given in radian.
      Parameters:
      angleRadian - The angle in radian
      Returns:
      The sine of the angle
    • sin

      public double sin(double angleDegree)
      Returns the sine of an angle given in degree.
      Parameters:
      angleDegree - The angle in degree
      Returns:
      The sine of the angle
    • cosRad

      public double cosRad(double angleRadian)
      Returns the cosine of an angle given in radian.
      Parameters:
      angleRadian - The angle in radian
      Returns:
      The cosine of the angle
    • cos

      public double cos(double angleDegree)
      Returns the cosine of an angle given in degree.
      Parameters:
      angleDegree - The angle in degree
      Returns:
      The cosine of the angle
    • tanRad

      public double tanRad(double angleRadian)
      Returns the tangent of an angle given in radian.
      Parameters:
      angleRadian - The angle in radian
      Returns:
      The tangent of the angle
    • tan

      public double tan(double angleDegree)
      Returns the tangent of an angle given in degree.
      Parameters:
      angleDegree - The angle in degree
      Returns:
      The tangent of the angle
    • cotRad

      public double cotRad(double angleRadian)
      Returns the cotangent of an angle given in radian.
      Parameters:
      angleRadian - The angle in radian
      Returns:
      The cotangent of the angle
    • cot

      public double cot(double angleDegree)
      Returns the cotangent of an angle given in degree.
      Parameters:
      angleDegree - The angle in degree
      Returns:
      The cotangent of the angle
    • secRad

      public double secRad(double angleRadian)
      Returns the secant of an angle given in radian.
      Parameters:
      angleRadian - The angle in radian
      Returns:
      The secant of the angle
    • sec

      public double sec(double angleDegree)
      Returns the secant of an angle given in degree.
      Parameters:
      angleDegree - The angle in degree
      Returns:
      The secant of the angle
    • cosecRad

      public double cosecRad(double angleRadian)
      Returns the cosecant of an angle given in radian.
      Parameters:
      angleRadian - The angle in radian
      Returns:
      The cosecant of the angle
    • cosec

      public double cosec(double angleDegree)
      Returns the cosecant of an angle given in degree.
      Parameters:
      angleDegree - The angle in degree
      Returns:
      The cosecant of the angle
    • arcsinRad

      public double arcsinRad(double x)
      Returns the arcsine of a number.
      Parameters:
      x - The number
      Returns:
      The arcsine of the number in radian
    • arcsin

      public double arcsin(double x)
      Returns the arcsine of a number.
      Parameters:
      x - The number
      Returns:
      The arcsine of the number in degree
    • arccosRad

      public double arccosRad(double x)
      Returns the arccosine of a number.
      Parameters:
      x - The number
      Returns:
      The arccosine of the number in radian
    • arccos

      public double arccos(double x)
      Returns the arccosine of a number.
      Parameters:
      x - The number
      Returns:
      The arccosine of the number in degree
    • arctanRad

      public double arctanRad(double x)
      Returns the arctangent of a number.
      Parameters:
      x - The number
      Returns:
      The arctangent of the number in radian
    • arctan

      public double arctan(double x)
      Returns the arctangent of a number.
      Parameters:
      x - The number
      Returns:
      The arctangent of the number in degree
    • arccotRad

      public double arccotRad(double x)
      Returns the arccotangent of a number.
      Parameters:
      x - The number
      Returns:
      The arccotangent of the number in radian
    • arccot

      public double arccot(double x)
      Returns the arccotangent of a number.
      Parameters:
      x - The number
      Returns:
      The arccotangent of the number in degree
    • arccosecRad

      public double arccosecRad(double x)
      Returns the arcosec of a number.
      Parameters:
      x - The number
      Returns:
      The arccosec of the number in radian
    • arccosec

      public double arccosec(double x)
      Returns the arcosec of a number.
      Parameters:
      x - The number
      Returns:
      The arcosec of the number in degree
    • arcsecRad

      public double arcsecRad(double x)
      Returns the arcsec of a number.
      Parameters:
      x - The number
      Returns:
      The arcsec of the number in radian
    • arcsec

      public double arcsec(double x)
      Returns the arcsec of a number.
      Parameters:
      x - The number
      Returns:
      The arcsec of the number in degree