Package jmathexpr.arithmetic.equation

Examples of jmathexpr.arithmetic.equation.Equation


        assertEquals(roots, new EmptySet());
    }

    @Test(dependsOnMethods = { "twoRadicals" })
    public void threeRadicals() throws EquationSolveException {
        Equation req = (Equation) new ExpressionParser().parse("sqrt(x + 8) + sqrt(x + 15) = sqrt(9x + 40)");
        Variable x = req.variable();
        System.out.printf("%s : %s = ?%n", req, x);
       
        Set roots = req.solve();
        System.out.printf("  %s = %s%n", x, roots);

//        for (Equality s : req.getSteps()) {
//            System.out.printf("    %s%n", s);
//        }
View Full Code Here


        stack.push(contains);
    }

    @Override
    public void exitSolve(ExpressionsParser.SolveContext ctx) {
        Equation equation = (Equation) stack.pop();
       
        statement = new Statement(Command.Solve, equation);
       
        stack.push(equation);
    }
View Full Code Here

TOP

Related Classes of jmathexpr.arithmetic.equation.Equation

Copyright © 2018 www.massapicom. 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.