static public AddToTree.Tree MulDivisionSorterFx(AddToTree.Tree Dummy, ref UknownIntegralSolver UIS) { Dummy = MulDivisionSorter.ArrangmentNumberAndX(Dummy); bool CONTINUE = false; do { CONTINUE = false; Dummy = MulDivisionSorter.MulDivisionSorterFxAction(Dummy, ref UIS, ref CONTINUE); } while (CONTINUE); return(Dummy); }
static AddToTree.Tree ArrangmentNumberAndX(AddToTree.Tree Dummy) { if (Dummy == null) { return(Dummy); } if (Dummy.LeftSideAccess != null) { if (Dummy.RightSideAccess != null) { if ((Dummy.SampleAccess == "*") || (Dummy.SampleAccess == "+")) { if (Dummy.ThreadAccess != null) { if (EqualToObject.IsEqualWithThreadConsiderationCommonly(Dummy.ThreadAccess.LeftSideAccess, Dummy)) { //if (IS.ISindependenceVaribaleOrNumber(Dummy.LeftSideAccess.SampleAccess)) //if (!IS.IsOperator(Dummy.LeftSideAccess.SampleAccess)) if (IS.IsDiv(Dummy.RightSideAccess.SampleAccess)) { Dummy.SetLefTandRightCommonlySide(Dummy.RightSideAccess, Dummy.LeftSideAccess); } } else if (EqualToObject.IsEqualWithThreadConsiderationCommonly(Dummy.ThreadAccess.RightSideAccess, Dummy)) { //if (IS.ISindependenceVaribaleOrNumber(Dummy.RightSideAccess.SampleAccess)) //if(!IS.IsOperator(Dummy.RightSideAccess.SampleAccess)) if (IS.IsDiv(Dummy.LeftSideAccess.SampleAccess)) { Dummy.SetLefTandRightCommonlySide(Dummy.RightSideAccess, Dummy.LeftSideAccess); } } } /* * if (IS.ISindependenceVaribaleOrNumber(Dummy.LeftSideAccess.SampleAccess)) * Dummy.SetLefTandRightCommonlySide(Dummy.RightSideAccess, Dummy.LeftSideAccess); */ } } } MulDivisionSorter.ArrangmentNumberAndX(Dummy.LeftSideAccess); MulDivisionSorter.ArrangmentNumberAndX(Dummy.RightSideAccess); return(Dummy); }