Package jmathexpr.arithmetic.op

Examples of jmathexpr.arithmetic.op.Exponentiation.evaluate()


    }
   
    @Test(dependsOnMethods = { "testRealExpressions" })
    public void testExponentiation() {
        Exponentiation exp3 = new Exponentiation(N.create(5), N.create(3));
        Expression evaluated = exp3.evaluate();
        System.out.printf("%s = %s%n", exp3, evaluated);
        assertEquals(evaluated, N.create(125));
    }

    @Test(dependsOnMethods = { "testRationalExpressions" })
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.