Package org.jamesii.core.math.parsetree.math

Examples of org.jamesii.core.math.parsetree.math.AbsNode.calc()


  public void testCreateNode() {
    NodeFactory nf = new NodeFactory();
    AbsNode n = nf.createNode(AbsNode.class, new ValueNode<>(-2));

    ValueNode<Double> resAbs = n.calc(null);

    assertTrue(resAbs.getValue().compareTo(2.) == 0);

    MultNode m =
        nf.createNode(MultNode.class, new ValueNode<>(-2), new ValueNode<>(3.));
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.