Package jmathexpr.arithmetic.equation.rule

Examples of jmathexpr.arithmetic.equation.rule.RuleMachine


        return new LinearEquation(lhs, rhs, x);
    }
   
    @Override
    public Set solve() throws EquationSolveException {
        rules = new RuleMachine(this);
       
        rules.addRule(new Fraction());
        rules.addRule(new DistributiveLaw());
        rules.addRule(new AssociativeLaw());
        rules.addRule(new VariableOnBothSides());
View Full Code Here


     *
     * @return a set of zero or one or infinite number of elements: the solution of this radical equation
     */
    @Override
    public Set solve() throws EquationSolveException {
        rules = new RuleMachine(this);
       
        rules.addRule(new SeparateRadicals());
        rules.addRule(new Square());
        rules.addRule(new DistributiveLaw());
        rules.addRule(new ToLinearEquation());
View Full Code Here

        return new QuadraticEquation(lhs, rhs, x);
    }
   
    @Override
    public Set solve() throws EquationSolveException {
        rules = new RuleMachine(this);
       
        rules.addRule(new Fraction());
        rules.addRule(new Canonical());
        rules.addRule(new RootFreeA());
        rules.addRule(new PlusMinus());
View Full Code Here

        return new AbsoluteValueEquation(lhs, rhs, x);
    }
   
    @Override
    public Set solve() throws EquationSolveException {
        rules = new RuleMachine(this);
       
        rules.addRule(new Isolate());
        rules.addRule(new IterativeRule());

        Set result = rules.execute();
View Full Code Here

TOP

Related Classes of jmathexpr.arithmetic.equation.rule.RuleMachine

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.