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

Solve: We can't request symbol when it depends of more than 1 eq and syms != system syms #11654

Open
latot opened this issue Sep 26, 2016 · 2 comments

Comments

@latot
Copy link
Contributor

latot commented Sep 26, 2016

Hi, basically the title, if we request symbols if it depends of more than 1 eq and when symbols request don't are the full symbols in the system, and the system don't is solved:

>>> solve([Eq(x+y,1), Eq(x-y,1)], x)
[]
>>> solve([Eq(x,1), Eq(x+y,1)], x)
[]
>>> solve([x+y+z, x+y-z], x, y)
[]
This works (when only depend of one eq) (the system don't is simplified):
>>> solve([Eq(y,1), Eq(x+y,1)], x)
{x: -y + 1}

Thx. Cya.

@latot latot changed the title Solve: We can't request one symbol when it depends of more than 1 eq Solve: We can't request symbol when it depends of more than 1 eq and syms != system syms Sep 26, 2016
@Shekharrajak
Copy link
Member

Since it is a liner system so it should be solvable using linsolve, but there is already known bug:

In [35]: linsolve([x+y+z, x+y-z], [x, y])
Out[35]: ∅

You can use substitution method :

In [36]: substitution([x+y+z, x+y-z], [x, y])
Out[36]: {(-y - z, y)}

@latot
Copy link
Contributor Author

latot commented Sep 27, 2016

This are only examples, this happen with non linear equations too:

>>> solve([Eq(x**2+y,1), Eq(x-y**2,1)], x)
[]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants