Giter Site home page Giter Site logo

Comments (10)

WhiteBlackGoose avatar WhiteBlackGoose commented on May 13, 2024

What do you mean by that? You can solve equation systems like that

from angourimath.

Happypig375 avatar Happypig375 commented on May 13, 2024

Was thinking of an equivalent of Simplify for EquationSystems so that

  • x+2y=3
  • x+y=2
    can be simplified to
  • x = 1
  • y = 1

from angourimath.

Happypig375 avatar Happypig375 commented on May 13, 2024

And by extension possibly also for Equations such that
x+y=z
can be

  • x = z-y
  • y = z-x
  • z = x+y

from angourimath.

WhiteBlackGoose avatar WhiteBlackGoose commented on May 13, 2024

Solve this equation for each variable

Entity expr = "x + y - z";
expr.Solve("x");
expr.Solve("y");
expr.Solve("z");

from angourimath.

Happypig375 avatar Happypig375 commented on May 13, 2024

But this requires knowing the variables in advance. GetUniqueVariables does not help here because Solve requires a list of VariableEntities, which is incompatible with EntitySet. Moreover, even with the help of LINQ to convert the EntitySet to a list of VariableEntities, a MathSException is still thrown with message Amount of equations must be equal to that of vars.

from angourimath.

Happypig375 avatar Happypig375 commented on May 13, 2024

And your solution does not work for an EquationSystem.

from angourimath.

WhiteBlackGoose avatar WhiteBlackGoose commented on May 13, 2024

I don't understand your problem at all.

Entity expr = "x + y - z";
foreach (var v in MathS.GetUniqueVariables(expr))
    Console.WriteLine(v.ToString() + " = " + expr.Solve(v as VariableEntity));

from angourimath.

Happypig375 avatar Happypig375 commented on May 13, 2024

And your solution does not work for an EquationSystem.

from angourimath.

WhiteBlackGoose avatar WhiteBlackGoose commented on May 13, 2024

What do you want from equation systems? Are you sure what you are looking for is necessary and at the same time cannot be achived by the user through a couple of lines of code?

from angourimath.

Happypig375 avatar Happypig375 commented on May 13, 2024

Superseded by #43

from angourimath.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.