Java sin sin(double a)

Here you can find the source of sin(double a)

Description

Returns the trigonometric sine of an angle.

License

Open Source License

Parameter

Parameter Description
a an angle, in radians.

Return

the sine of the argument.

Declaration

public static double sin(double a) 

Method Source Code

//package com.java2s;

public class Main {
    /**//from w  w w . ja  v  a 2s.co m
     * Returns the trigonometric sine of an angle. Special cases:
     * 
     * <ul>
     * <li>
     * If the argument is NaN or an infinity, then the result is NaN.</li>
     * <li>
     * If the argument is zero, then the result is a zero with the same sign as
     * the argument.</li>
     * </ul>
     * 
     * <p>
     * A result must be within 1 ulp of the correctly rounded result. Results
     * must be semi-monotonic.
     * </p>
     * 
     * @param a
     *            an angle, in radians.
     * 
     * @return the sine of the argument.
     */
    public static double sin(double a) {
        return Math.sin(a);
    }
}

Related

  1. sin(double anAngle)
  2. sin(double d)
  3. sin(double radians)
  4. sin(double... v)