Package jmathexpr.arithmetic.equation

Examples of jmathexpr.arithmetic.equation.Equation.solve()


    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

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.