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

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

Introduction

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

Prototype

public Complex exp() 

Source Link

Document

Compute the <a href="http://mathworld.wolfram.com/ExponentialFunction.html" TARGET="_top"> exponential function</a> of this complex number.

Usage

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

/**
 * c = e ^ a Michael Borcherds 2009-03-10
 * //  w w w.  j ava 2 s .c  o  m
 * @param a
 *            power
 * @param c
 *            result
 */
final public static void complexExp(GeoVec2D a, GeoVec2D c) {
    Complex out = new Complex(a.x, a.y);
    out = out.exp();
    c.x = out.getReal();
    c.y = out.getImaginary();
    c.setMode(Kernel.COORD_COMPLEX);
}

From source file:org.renjin.primitives.MathGroup.java

@Deferrable
@Builtin
@DataParallel(PreserveAttributeStyle.ALL)
public static Complex exp(Complex x) {
    return x.exp();
}