Example usage for java.lang Number doubleValue

List of usage examples for java.lang Number doubleValue

Introduction

In this page you can find the example usage for java.lang Number doubleValue.

Prototype

public abstract double doubleValue();

Source Link

Document

Returns the value of the specified number as a double .

Usage

From source file:iDynoOptimizer.MOEAFramework26.src.org.moeaframework.util.tree.NumberArithmetic.java

/**
 * Returns the trigonometric cosine of the number.
 * /*from   w w w  . ja va  2 s . c o m*/
 * @param a the number
 * @return the trigonometric cosine of the number
 * @see Math#cos(double)
 */
public static Number cos(Number a) {
    return Math.cos(a.doubleValue());
}

From source file:iDynoOptimizer.MOEAFramework26.src.org.moeaframework.util.tree.NumberArithmetic.java

/**
 * Returns the trigonometric tangent of the number.
 * /*from ww w.  j  av  a 2 s  .c o  m*/
 * @param a the number
 * @return the trigonometric tangent of the number
 * @see Math#tan(double)
 */
public static Number tan(Number a) {
    return Math.tan(a.doubleValue());
}

From source file:iDynoOptimizer.MOEAFramework26.src.org.moeaframework.util.tree.NumberArithmetic.java

/**
 * Returns the arc sine of the number.// w  ww  .  j  av a 2 s  . co  m
 * 
 * @param a the number
 * @return the arc sine of the number
 * @see Math#asin(double)
 */
public static Number asin(Number a) {
    return Math.asin(a.doubleValue());
}

From source file:iDynoOptimizer.MOEAFramework26.src.org.moeaframework.util.tree.NumberArithmetic.java

/**
 * Returns the arc cosine of the number.
 * //from   www  . j  a va 2  s.c  o m
 * @param a the number
 * @return the arc cosine of the number
 * @see Math#acos(double)
 */
public static Number acos(Number a) {
    return Math.acos(a.doubleValue());
}

From source file:iDynoOptimizer.MOEAFramework26.src.org.moeaframework.util.tree.NumberArithmetic.java

/**
 * Returns the arc tangent of the number.
 * /*  www  .jav  a2  s.c  o  m*/
 * @param a the number
 * @return the arc tangent of the number
 * @see Math#atan(double)
 */
public static Number atan(Number a) {
    return Math.atan(a.doubleValue());
}

From source file:iDynoOptimizer.MOEAFramework26.src.org.moeaframework.util.tree.NumberArithmetic.java

/**
 * Returns the hyperbolic sine of the number.
 * //from  ww w .  j a v  a 2s.  c o m
 * @param a the number
 * @return the hyperbolic sine of the number
 * @see Math#sinh(double)
 */
public static Number sinh(Number a) {
    return Math.sinh(a.doubleValue());
}

From source file:iDynoOptimizer.MOEAFramework26.src.org.moeaframework.util.tree.NumberArithmetic.java

/**
 * Returns the hyperbolic cosine of the number.
 * /* w  w w . j av a 2s. c  o m*/
 * @param a the number
 * @return the hyperbolic cosine of the number
 * @see Math#cosh(double)
 */
public static Number cosh(Number a) {
    return Math.cosh(a.doubleValue());
}

From source file:iDynoOptimizer.MOEAFramework26.src.org.moeaframework.util.tree.NumberArithmetic.java

/**
 * Returns the hyperbolic tangent of the number.
 * /*from w  ww. ja  v a2s  .  c  o  m*/
 * @param a the number
 * @return the hyperbolic tangent of the number
 * @see Math#tanh(double)
 */
public static Number tanh(Number a) {
    return Math.tanh(a.doubleValue());
}

From source file:iDynoOptimizer.MOEAFramework26.src.org.moeaframework.util.tree.NumberArithmetic.java

/**
 * Returns the hyperbolic arc sine of the number.
 * //  w ww  . ja v a  2s  . c o  m
 * @param a the number
 * @return the hyperbolic arc sine of the number
 * @see FastMath#asinh(double)
 */
public static Number asinh(Number a) {
    return FastMath.asinh(a.doubleValue());
}

From source file:iDynoOptimizer.MOEAFramework26.src.org.moeaframework.util.tree.NumberArithmetic.java

/**
 * Returns the hyperbolic arc cosine of the number.
 * /*w w w. j a  v  a2 s. c o  m*/
 * @param a the number
 * @return the hyperbolic arc cosine of the number
 * @see FastMath#acosh(double)
 */
public static Number acosh(Number a) {
    return FastMath.acosh(a.doubleValue());
}