Skip to content

Solving a system of equations where one of the variables is equal to zero returns Null #619

Closed

Description

@idrisnacer

The version I use: AngouriMath, Version="10.0.0-master-1697660059-79490e3"

Unexpected behaviour or bug: system should be solved

In the example below, Solve("x", "y") returns Null :

var system = MathS.Equations(
      "x - y - 1000",
      "y - 0");
 var results = system.Solve("x", "y");
 Assert.NotNull(results); // fails

or

var system = MathS.Equations(
      "x - y - 1000",
      "y");
 var results = system.Solve("x", "y");
 Assert.NotNull(results); // fails

I've done some more testing where it returns the results :

var system = MathS.Equations(
      "x - y - 1000",
      "y - 1 + 1");
 var results = system.Solve("x", "y");
 Assert.NotNull(results); // passes
var system = MathS.Equations(
      "x - y - 1000",
      "y - 50");
 var results = system.Solve("x", "y");
 Assert.NotNull(results); // passes

Activity

  1. WhiteBlackGoose commented on Nov 27, 2023

    @WhiteBlackGoose
    Member

    😭 why

  2. idrisnacer commented on Nov 29, 2023

    @idrisnacer
    Author

    Also, i don't know if its related, this fails :

    var system = MathS.Equations(
             "x - y - 1000",
             "y");
    var results = system.Solve("x", "y");
    Assert.NotNull(results); // fails
    

    But when i change the order of variables it works ! :

    var system = MathS.Equations(
             "x - y - 1000",
             "y");
    var results = system.Solve("y", "x");
    Assert.NotNull(results); // passes
    
  3. blahutakrystian commented on Mar 13, 2024

    @blahutakrystian

    hi, @WhiteBlackGoose can i grab it?

  4. WhiteBlackGoose commented on Mar 19, 2024

    @WhiteBlackGoose
    Member
  5. SoulFireMage commented on Mar 28, 2024

    @SoulFireMage

    Would I be right in thinking that this one is resolved?

    I had a quick go as a first timer and found the first example given in these comments now pass (assuming I did it right)

  6. blahutakrystian commented on Mar 28, 2024

    @blahutakrystian

    go ahead, it looks complicated for me, takes time to understand the project

  7. WhiteBlackGoose commented on Mar 31, 2024

    @WhiteBlackGoose
    Member

    @SoulFireMage you're right, there was a PR on this issue. Sorry 😄

  8. added theissue type on Sep 22, 2026
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions