Comments (10)
What do you mean by that? You can solve equation systems like that
from angourimath.
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.
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.
Solve this equation for each variable
Entity expr = "x + y - z";
expr.Solve("x");
expr.Solve("y");
expr.Solve("z");
from angourimath.
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.
And your solution does not work for an EquationSystem.
from angourimath.
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.
And your solution does not work for an EquationSystem.
from angourimath.
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.
Superseded by #43
from angourimath.
Related Issues (20)
- Cells' outputs in a variable for the terminal
- Precision is being lost somewhere
- how to write a string which can create nth root latex HOT 2
- Logical calculation HOT 4
- how to use != in expression HOT 4
- CLI HOT 1
- Cannot solve a linear system HOT 1
- Merge AngouriMath.Experimental into AngouriMath
- Consider adding support for StringSyntax attribute HOT 3
- What is the mechanism for extracting the remainder of the division? HOT 1
- Solving a system of equations where one of the variables is equal to zero returns Null HOT 7
- loading the package Bug! HOT 5
- pow function is not parsing correctly HOT 2
- Any easy way to change the behaviour when parsing alpha_num pattern string? HOT 6
- package AngouriMath.Terminal as dotnet tool HOT 2
- Unable to parse variable names with numbers correctly HOT 3
- Equations cannot be solved HOT 2
- SetNode?
- direct product for matrices HOT 4
- Basic Algebra Help HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angourimath.