Beispiel #1
0
 static void IntegralAnswerAddingActionFx(AddToTree.Tree Dummy)
 {
     Answer.CreateLinkListFromTree1(Dummy);
 }
Beispiel #2
0
        static public bool IsEqualWithOutThreadConsiderationByDivision(AddToTree.Tree T1, AddToTree.Tree T2, ref UknownIntegralSolver UIS, ref float Quficient)
        {
            bool Is = false;

            try
            {
                AddToTree.Tree Code = new AddToTree.Tree("/", false);

                T2      = Simplifier.SimplifierFx(T2, ref UIS);
                Answer1 = new AddToTreeTreeLinkList();
                Answer2 = new AddToTreeTreeLinkList();

                Answer1.CreateLinkListFromTree1(T2);
                Answer2.CreateLinkListFromTree1(T1);

                //                Answer1Recrve.CreateLinkListFromTree2(T2);
                //              Answer2Recrve.CreateLinkListFromTree2(UIS.Enterface.SenderAccess.AutoSenderAccess.NodeAccess.CopyNewTree(UIS.Enterface.SenderAccess.AutoSenderAccess.NodeAccess));


                if (Answer2.Node.EqualLinkList(Answer1.Node))//ERRORCORECTION6465464654:The Sigle Statment Recursive Integral Solved:1394/1/31
                {
                    if (IS.IsNumber(T2.LeftSideAccess.SampleAccess) && IS.IsNumber(T1.LeftSideAccess.SampleAccess))
                    {
                        if (Integral.IntegralSignPositive)
                        {
                            Quficient = (float)(System.Convert.ToDouble(T1.CopyNewTree(T1).SampleAccess) - Quficient * System.Convert.ToDouble(T2.LeftSideAccess.SampleAccess));
                        }
                        else
                        {
                            Quficient = (float)(System.Convert.ToDouble(T1.CopyNewTree(T1).SampleAccess) + Quficient * System.Convert.ToDouble(T2.LeftSideAccess.SampleAccess));
                        }

                        Is = true;
                    }
                    else
                    if (IS.IsNumber(T2.LeftSideAccess.SampleAccess))
                    {
                        if (Integral.IntegralSignPositive)
                        {
                            Quficient = (float)(1.0 - Quficient * System.Convert.ToDouble(T2.LeftSideAccess.SampleAccess));
                        }
                        else
                        {
                            Quficient = (float)(1.0 + Quficient * System.Convert.ToDouble(T2.LeftSideAccess.SampleAccess));
                        }

                        Is = true;
                    }
                }

                if (!Is)
                {
                    if (Answer2.Node.EqualLinkList2(Answer1.Node))//ERRORCORECTION6465464654:The Sigle Statment Recursive Integral Solved:1394/1/31
                    {
                        if (IS.IsNumber(T2.SampleAccess) && IS.IsNumber(T1.LeftSideAccess.SampleAccess))
                        {
                            if (Integral.IntegralSignPositive)
                            {
                                Quficient = (float)(System.Convert.ToDouble(T1.CopyNewTree(T1).SampleAccess) - Quficient * System.Convert.ToDouble(T2.SampleAccess));
                            }
                            else
                            {
                                Quficient = (float)(System.Convert.ToDouble(T1.CopyNewTree(T1).SampleAccess) + Quficient * System.Convert.ToDouble(T2.SampleAccess));
                            }

                            Is = true;
                        }
                        else
                        if (!IS.IsNumber(T2.SampleAccess))
                        {
                            if (Integral.IntegralSignPositive)
                            {
                                Quficient = (float)(1.0 - Quficient);
                            }
                            else
                            {
                                Quficient = (float)(1.0 + Quficient);
                            }

                            Is = true;
                        }
                    }
                }
            }
            catch (NullReferenceException t) { ExceptionClass.ExceptionClassMethod(t); }
            return(Is);
        }