Skip to content

Infinite loop while solving equation #5

Closed

Description

@MomoDeve

Description
trying to solve expression for variable which does not exists, causes Solve method to execute forever. This happens because of infitine while loop in AnalyticalSolver:
https://github.com/Angourisoft/MathS/blob/master/AngouriMath/Functions/Algebra/AnalyticalSolver/AnalyticalSolver.cs#L61

To Reproduce

static void Main(string[] args)
{
    AngouriMath.Entity expr = "1";
    expr.Solve("x");
}

Conditions
AngouriMath 1.0.17.2-Beta (latest)
Visual Studio 2019
Possible solution
if we find Entity with no children and it is not our entity - we should break from loop. Consider checking latest commit to MomoBranch: d87422c

Activity

  1. added a commit that references this issue on Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions