Package jmathexpr.relation

Examples of jmathexpr.relation.Equality.evaluate()


        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);
       
        Division division = new Division(R.create(10.0), R.create(2.0));
        System.out.printf("Division domain: %s%n", division.domain());
View Full Code Here


        evaluated = naturalExpr.evaluate();
        System.out.printf("%s = %s%n", naturalExpr, evaluated);       
        assertEquals(evaluated, N.create(42));
       
        Expression equality = new Equality(naturalExpr, N.create(42));
        evaluated = equality.evaluate();
        System.out.printf("%s : %s%n", equality, evaluated);
        assertEquals(evaluated, TruthValue.True);
               
        Expression elementOf = new ElementOf(naturalExpr, N);
        evaluated = elementOf.evaluate();
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.