sin, cos, tan: Trigonometric functions

ReturnMethodSummary
static doubleacos(double a)Returns the arc cosine of a value.
static doubleasin(double a)Returns the arc sine of a value.
static doubleatan(double a)Returns the arc tangent of a value.
static doubleatan2(double y, double x)Returns the angle theta.
static doublecos(double a)Returns the trigonometric cosine of an angle.
static doublecosh(double x)Returns the hyperbolic cosine of a double value.
static doublesin(double a)Returns the trigonometric sine of an angle.
static doublesinh(double x)Returns the hyperbolic sine of a double value.
static doubletan(double a)Returns the trigonometric tangent of an angle.
static doubletanh(double x)Returns the hyperbolic tangent of a double value.

public class Main {
  public static void main(String[] args) {

    System.out.print(Math.sin(1));
  }
}

The output:


0.8414709848078965
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.