Here you can find the source of tan(double a)
Parameter | Description |
---|---|
a | an angle, in radians |
public static double tan(double a)
//package com.java2s; //License from project: Open Source License public class Main { /**//from ww w . j a va 2s. c o m * Returns the trigonometric tangent of an angle. Special cases: * <ul><li>If the argument is NaN or an infinity, then the result is NaN. * <li>If the argument is zero, then the result is a zero with the same sign * as the argument.</ul> * * <p>The computed result must be within 1 ulp of the exact result. Results * must be semi-monotonic. * * @param a an angle, in radians * @return the tangent of the argument */ public static double tan(double a) { return Math.tan(a); } }