Examples of RealNumber


Examples of jmathexpr.arithmetic.real.RealNumber

    }

    @Test(dependsOnMethods = { "testRationalExpressions" })
    public void testRealExpressions() {
        Expression evaluated;
        RealNumber r0d1 = R.create(0.1);
        RealNumber div = R.create(1.0/10);
        Subtraction diff = new Subtraction(r0d1, div);
       
        RealNumber zero = R.create(0.0);
        Equality zeroTest = new Equality(diff, zero);
       
        evaluated = zeroTest.evaluate();
        System.out.printf("%s : %s%n", zeroTest, evaluated);
        assertEquals(evaluated, TruthValue.True);
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.