Java tan tan(double a)

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

Description

Returns the trigonometric tangent of an angle.

License

Open Source License

Parameter

Parameter Description
a an angle, in radians

Return

the tangent of the argument

Declaration

public static double tan(double a) 

Method Source Code

//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);
    }
}

Related

  1. tan(final float value)
  2. tan(float angle)
  3. tan(float angle)
  4. tan(float angle)