Example usage for org.apache.commons.math.complex Complex sinh

List of usage examples for org.apache.commons.math.complex Complex sinh

Introduction

In this page you can find the example usage for org.apache.commons.math.complex Complex sinh.

Prototype

public Complex sinh() 

Source Link

Document

Compute the <a href="http://mathworld.wolfram.com/HyperbolicSine.html" TARGET="_top"> hyperbolic sine</a> of this complex number.

Usage

From source file:geogebra.common.kernel.geos.GeoVec2D.java

/**
 * c = sinh(a) /*from   w  ww. j av a 2s .c  o m*/
 * 
 * @param a
 *            a
 * @param c
 *            c
 */
final public static void complexSinh(GeoVec2D a, GeoVec2D c) {
    Complex out = new Complex(a.x, a.y);
    out = out.sinh();
    c.x = out.getReal();
    c.y = out.getImaginary();
    c.setMode(Kernel.COORD_COMPLEX);
}

From source file:geogebra.common.kernel.geos.GeoVec2D.java

/**
 * c = csc(a) // w ww.jav a 2s  . c  om
 * 
 * @param a
 *            a
 * @param c
 *            c
 */
final public static void complexCsch(GeoVec2D a, GeoVec2D c) {
    Complex out = new Complex(a.x, a.y);
    out = Complex.ONE.divide(out.sinh());

    c.x = out.getReal();
    c.y = out.getImaginary();

    c.setMode(Kernel.COORD_COMPLEX);
}