Examples of pow()


Examples of mikera.vectorz.AVector.pow()

    }

    INDArray b = a.exactClone();
    AVector v = b.toVector();
    b.pow(2.5);
    v.pow(2.5);
    assertTrue(v.epsilonEquals(b.toVector()));

    b = a.exactClone();
    v = b.toVector();
    b.square();
View Full Code Here

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

          stackAnswer.push(complexFormat.format(a.tan()));
        } else if (token.equals("tanh")) {
          stackAnswer.push(complexFormat.format(a.tanh()));
        } else if (token.equals("pow")) {
          Complex b = complexFormat.parse(stackAnswer.pop());
          stackAnswer.push(complexFormat.format(b.pow(a)));
        }
      }
    }

    if (stackAnswer.size() > 1) {
View Full Code Here

Examples of org.apache.velocity.tools.generic.MathTool.pow()

        assertEquals(12,mathTool.mul(3,4));
        assertEquals(13,mathTool.round(12.8));
        assertEquals(14.2,mathTool.roundTo(1,14.18));
        assertEquals(-5.0,mathTool.roundTo(2,-4.999));
        assertEquals(15,mathTool.sub(30,15));
        assertEquals(16,mathTool.pow(4,2));
        assertEquals(17,mathTool.toInteger("17"));
        assertEquals(18.1,mathTool.toDouble("18.1"));
    }

    public @Test void testNumberTool() {
View Full Code Here

Examples of org.apache.velocity.tools.generic.MathTool.pow()

        assertEquals(12,mathTool.mul(3,4));
        assertEquals(13,mathTool.round(12.8));
        assertEquals(14.2,mathTool.roundTo(1,14.18));
        assertEquals(-5.0,mathTool.roundTo(2,-4.999));
        assertEquals(15,mathTool.sub(30,15));
        assertEquals(16,mathTool.pow(4,2));
        assertEquals(17,mathTool.toInteger("17"));
        assertEquals(18.1,mathTool.toDouble("18.1"));
    }

    public @Test void testNumberTool() {
View Full Code Here

Examples of org.apache.velocity.tools.generic.MathTool.pow()

        assertEquals(11,mathTool.mod(37,13));
        assertEquals(12,mathTool.mul(3,4));
        assertEquals(13,mathTool.round(12.8));
        assertEquals(14.2,mathTool.roundTo(1,14.18));
        assertEquals(15,mathTool.sub(30,15));
        assertEquals(16,mathTool.pow(4,2));
        assertEquals(17,mathTool.toInteger("17"));
        assertEquals(18.1,mathTool.toDouble("18.1"));
    }

    public @Test void testNumberTool() {
View Full Code Here

Examples of org.apache.velocity.tools.generic.MathTool.pow()

        assertEquals(12,mathTool.mul(3,4));
        assertEquals(13,mathTool.round(12.8));
        assertEquals(14.2,mathTool.roundTo(1,14.18));
        assertEquals(-5.0,mathTool.roundTo(2,-4.999));
        assertEquals(15,mathTool.sub(30,15));
        assertEquals(16,mathTool.pow(4,2));
        assertEquals(17,mathTool.toInteger("17"));
        assertEquals(18.1,mathTool.toDouble("18.1"));
    }

    public @Test void testNumberTool() {
View Full Code Here

Examples of org.jwildfire.base.mathlib.Complex.Pow()

  public void transform(FlameTransformationContext pContext, XForm pXForm, XYZPoint pAffineTP, XYZPoint pVarTP, double pAmount) {
    /* polylogarithm by dark-beam */
    // approx (very good) of Li[n](z) for n > 1
    double vv = pAmount;
    Complex z = new Complex(pAffineTP.x, pAffineTP.y);
    z.Pow(zpow);
    z.Save();
    if (z.Mag2() > 250000.0 || N >= 20) { // no convergence, or N too big... When N is big then Li tends to z
      pVarTP.x += vv * z.re;
      pVarTP.y += vv * z.im;
      return;
View Full Code Here

Examples of org.luaj.vm2.LuaValue.pow()

      break;
    case OP_MOD:
      r = v1.mod(v2);
      break;
    case OP_POW:
      r = v1.pow(v2);
      break;
    case OP_UNM:
      r = v1.neg();
      break;
    case OP_LEN:
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.