Calculates the hyperbolic area sine. - Java java.lang

Java examples for java.lang:Math Trigonometric Function

Description

Calculates the hyperbolic area sine.

Demo Code

/*/*from   w  w  w.ja  v  a 2s  .c  o  m*/
 * Copyright (C) 2009-2011 Michael Kanis and others
 *  
 * This file is part of Geoclipse.
 *
 * Geoclipse is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 2 of the License, or
 * (at your option) any later version.
 *
 * Geoclipse is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Geoclipse.  If not, see <http://www.gnu.org/licenses/>.
 */
//package com.java2s;

public class Main {
    /**
     * Calculates the hyperbolic area sine. This is the reverse function of
     * {@link Math#sinh(double)}.
     */
    public static double asinh(double x) {
        return Math.log(x + Math.sqrt(Math.pow(x, 2) + 1));
    }
}

Related Tutorials