Ejemplo n.º 1
0
 @Override
 public ComplexDouble div(double v) {
   super.div(v);
   return this;
 }
Ejemplo n.º 2
0
 @Override
 public ComplexDouble divi(org.jblas.ComplexDouble c) {
   super.divi(c);
   return this;
 }
Ejemplo n.º 3
0
 @Override
 public ComplexDouble divi(double v, org.jblas.ComplexDouble result) {
   super.divi(v, result);
   return this;
 }
Ejemplo n.º 4
0
 public ComplexDouble(org.jblas.ComplexDouble c) {
   super(c.real(), c.imag());
 }
Ejemplo n.º 5
0
 @Override
 public IComplexNumber set(Number real, Number imag) {
   super.set(real.doubleValue(), imag.doubleValue());
   return this;
 }
Ejemplo n.º 6
0
 @Override
 public ComplexDouble conji() {
   super.set(realComponent(), -imaginaryComponent());
   return this;
 }
Ejemplo n.º 7
0
 @Override
 public IComplexNumber set(Number real, Number imag) {
   super.set((double) real, (double) imag);
   return this;
 }
Ejemplo n.º 8
0
 /**
  * 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()));
 }