@Override public ComplexFloat divi(float v, org.jblas.ComplexFloat result) { super.divi(v, result); return this; }
@Override public ComplexFloat div(float v) { super.div(v); return this; }
@Override public ComplexFloat divi(org.jblas.ComplexFloat c) { super.divi(c); return this; }
public ComplexFloat(org.jblas.ComplexFloat c) { super(c.real(), c.imag()); }
@Override public IComplexNumber set(Number real, Number imag) { super.set(real.floatValue(), imag.floatValue()); return this; }
@Override public ComplexFloat conji() { super.set(realComponent(), -imaginaryComponent()); return this; }
/** * Returns the exp of a complex number: Let r be the real component and i be the imaginary Let ret * be the complex number returned ret -> exp(r) * cos(i), exp(r) * sin(i) where the first number * is the real component and the second number is the imaginary component * * @param d the number to getFromOrigin the exp of * @return the exponential of this complex number */ public static ComplexFloat exp(ComplexFloat d) { return new ComplexFloat( (float) FastMath.exp(d.real()) * (float) FastMath.cos(d.imag()), (float) FastMath.exp(d.real()) * (float) FastMath.sin(d.imag())); }