Package jmathexpr.arithmetic

Examples of jmathexpr.arithmetic.ANumber.multiply()


                }
            } else if (r instanceof Multiplication) {
                Multiplication m = (Multiplication) r;
               
                if (m.lhs instanceof ANumber) { // a (bx) = (ab) x
                    l = a.multiply((ANumber) m.lhs);
                    r = m.rhs;
                } else if (m.rhs instanceof ANumber) { // a (xb) = (ab) x
                    l = a.multiply((ANumber) m.rhs);
                    r = m.lhs;
                }
View Full Code Here


               
                if (m.lhs instanceof ANumber) { // a (bx) = (ab) x
                    l = a.multiply((ANumber) m.lhs);
                    r = m.rhs;
                } else if (m.rhs instanceof ANumber) { // a (xb) = (ab) x
                    l = a.multiply((ANumber) m.rhs);
                    r = m.lhs;
                }
            } else if (r instanceof Negation) { // a (-x) = -ax
                l = a.negate();
                r = ((Negation) r).getChild();
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.