Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 619 Bug: Solving a system of equations... #622

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

adk7507
Copy link
Contributor

@adk7507 adk7507 commented Jan 4, 2024

#619

I added tests with the inputs described in the issue to the SolveSystem tests.

During debugging, I found that AnalyticalEquationSolver.Solve( "{-(x + -1000) / (-1)}", "{x}" )
was returning "{{ } \/ { 1000 } \ { }}"

That value wasn't fitting the FiniteSet type in the ternary within EquationSolver.InSolveSystem.
I tried simply getting InnerSimplified of the solution, and that worked for the new test cases and didn't break the old ones.

Maybe this isn't the right place to simplify, or FiniteSet should accept the value as is.

…lyticalEquationSolver.Solve( "{-(x + -1000) / (-1)}", "{x}" ) was returning "{{ } \/ { 1000 } \ { }}". That wasn't being interpreted as a FiniteSet. Getting InnerSimplified results in "{1000}", and that fits the FiniteSet type.
@WhiteBlackGoose
Copy link
Member

Thanks!

@WhiteBlackGoose WhiteBlackGoose marked this pull request as ready for review January 19, 2024 17:34
@WhiteBlackGoose WhiteBlackGoose merged commit 1ae631f into asc-community:master Jan 19, 2024
22 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants