Here you can find the source of sin(double a)
Parameter | Description |
---|---|
a | an angle, in radians. |
public static double sin(double a)
//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); } }