Examples of negate()


Examples of org.apache.commons.math3.analysis.differentiation.DerivativeStructure.negate()

      DerivativeStructure t  = sum.multiply(2.0 / m).add(1);
      DerivativeStructure[] f = new DerivativeStructure[m];
      for (int i = 0; i < n; ++i) {
        f[i] = variables[i].subtract(t);
      }
      Arrays.fill(f, n, m, t.negate());
      return f;
    }

  }
View Full Code Here

Examples of org.apache.commons.math3.complex.Complex.negate()

        } else if (token.equals("imag")) {
          stackAnswer.push(complexFormat.format(a.getImaginary()));
        } else if (token.equals("log")) {
          stackAnswer.push(complexFormat.format(a.log()));
        } else if (token.equals("neg")) {
          stackAnswer.push(complexFormat.format(a.negate()));
        } else if (token.equals("real")) {
          stackAnswer.push(complexFormat.format(a.getReal()));
        } else if (token.equals("sin")) {
          stackAnswer.push(complexFormat.format(a.sin()));
        } else if (token.equals("sinh")) {
View Full Code Here

Examples of org.apache.commons.math3.dfp.Dfp.negate()

      }

      Dfp y = DfpMath.pow(x, field.getOne().divide(3));

      if (negative) {
          y = y.negate();
      }

      return y;
    }
View Full Code Here

Examples of org.apache.commons.math3.dfp.Dfp.negate()

      }

      Dfp y = DfpMath.pow(x, field.getOne().divide(3));

      if (negative) {
          y = y.negate();
      }

      return y;
    }
View Full Code Here

Examples of org.apache.hadoop.hive.common.type.HiveDecimal.negate()

        String digits = new String(decimalBuffer, 0, length, decimalCharSet);
        BigInteger bi = new BigInteger(digits);
        HiveDecimal bd = HiveDecimal.create(bi).scaleByPowerOfTen(factor-length);

        if (!positive) {
          bd = bd.negate();
        }

        bdw.set(bd);
        return bdw;
      }
View Full Code Here

Examples of org.apache.sis.internal.util.DoubleDouble.negate()

                acc.setFrom(LU, j*size + k, errorLU);   // Same column than the diagonal element, but in the upper row.
                for (int i=0; i<innerSize; i++) {       // Apply to all columns in the upper row.
                    rat.setFrom(elements, rowOffset + i, errorOffset);
                    rat.multiply(acc);
                    rat.subtract(elements, upRowOffset + i, errorOffset);
                    rat.negate();
                    rat.storeTo(elements, upRowOffset + i, errorOffset);
                }
            }
        }
        return result;
View Full Code Here

Examples of org.apache.tuscany.sca.test.extended.MathService.negate()

    }

    public int delegateNegate(int theInt) {
        SCADomain domain = SCADomain.connect("sca://local");
        MathService service = domain.getService(MathService.class, "MathServiceComponent");
        return service.negate(theInt);      
    }


}
View Full Code Here

Examples of org.archfirst.common.quantity.DecimalQuantity.negate()

            }
            DecimalQuantity withdrawQuantity =
                (lotQuantity.gteq(quantityLeftToWithdraw)) ?
                        quantityLeftToWithdraw : lotQuantity;
            lot.sell(withdrawQuantity);
            lot.addAllocation(factory.createAllocation(withdrawQuantity.negate()));
            quantityLeftToWithdraw = quantityLeftToWithdraw.minus(withdrawQuantity);
            if (quantityLeftToWithdraw.isZero()) {
                break;
            }
        }
View Full Code Here

Examples of org.bouncycastle.math.ec.ECPoint.negate()

            throw new IllegalStateException("ECElGamalDecryptor not initialised");
        }

        ECPoint tmp = pair.getX().multiply(key.getD());

        return pair.getY().add(tmp.negate());
    }
}
View Full Code Here

Examples of org.eclipse.draw2d.geometry.Point.negate()

   * @see RotatableDecoration#setReferencePoint(Point)
   */
  public void setReferencePoint(Point ref) {
    Point pt = Point.SINGLETON;
    pt.setLocation(ref);
    pt.negate().translate(location);
    setRotation(Math.atan2(pt.y, pt.x));
   
    this.repaint();
  }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.