@Override public ComplexDouble div(double v) { super.div(v); return this; }
@Override public ComplexDouble divi(org.jblas.ComplexDouble c) { super.divi(c); return this; }
@Override public ComplexDouble divi(double v, org.jblas.ComplexDouble result) { super.divi(v, result); return this; }
public ComplexDouble(org.jblas.ComplexDouble c) { super(c.real(), c.imag()); }
@Override public IComplexNumber set(Number real, Number imag) { super.set(real.doubleValue(), imag.doubleValue()); return this; }
@Override public ComplexDouble conji() { super.set(realComponent(), -imaginaryComponent()); return this; }
@Override public IComplexNumber set(Number real, Number imag) { super.set((double) real, (double) imag); 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 ComplexDouble exp(ComplexDouble d) { return new ComplexDouble( FastMath.exp(d.real()) * FastMath.cos(d.imag()), FastMath.exp(d.real()) * FastMath.sin(d.imag())); }