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

Support solving for Dummy symbols in linsolve #9668

Merged
merged 1 commit into from Jul 17, 2015

Conversation

aktech
Copy link
Member

@aktech aktech commented Jul 13, 2015

The following works now:

In [4]: M = Matrix([[1, 2, 1, 1, 7], [1, 2, 2, -1, 12], [2, 4, 0, 6, 4]])

In [5]: system = A, b = M[:, :-1], M[:, -1]

In [8]: x1= Dummy('x1')

In [9]: x2= Dummy('x2')

In [10]: x3= Dummy('x3')

In [11]: x4= Dummy('x4')

In [12]: linsolve(system, x1, x2, x3, x4)
Out[12]: {(-2*_x2 - 3*_x4 + 2, _x2, 2*_x4 + 5, _x4)}

Fixes #9667
@hargup @flacjacket

Signed-off-by: AMiT Kumar <dtu.amit@gmail.com>
@hargup
Copy link
Contributor

hargup commented Jul 17, 2015

+1

hargup added a commit that referenced this pull request Jul 17, 2015
Support solving for Dummy symbols in linsolve
@hargup hargup merged commit 551b6e1 into sympy:master Jul 17, 2015
@aktech aktech deleted the linsolve-dummy branch July 25, 2015 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants