Examples of mul()


Examples of tools.ec.EllipticCurve.Element.mul()

    EllipticCurve ec = new EllipticCurve(new BigInteger("43"),
        new BigInteger("4"), new BigInteger("34"));
    Element element1 = new Element(ec, new BigInteger("12"),
        new BigInteger("41"));

    assertEquals(element1, element1.mul(1));
    assertEquals(
        element1.add(element1).add(element1).add(element1)
            .add(element1), element1.mul(5));
    assertEquals(element1.mul(4), new Element(ec, new BigInteger("31"),
        new BigInteger("8")));
View Full Code Here

Examples of zz.jinterp.JPrimitive.JNumber.mul()

      case LMUL:
      case FMUL:
      case DMUL: {
        JNumber n2 = (JNumber) pop();
        JNumber n1 = (JNumber) pop();
        push(n1.mul(n2));
      } break;
       
      case IDIV:
      case LDIV:
      case FDIV:
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.