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

solveset() solutions need extra conditions when other symbols are involved #12774

Open
user234683 opened this issue Jun 18, 2017 · 1 comment

Comments

@user234683
Copy link
Contributor

Suppose we want to solve for 'x', and our equation involves another symbolic parameter 'a', whose value we also don't know. If 'a' has certain values, the equation might not be solvable because it results in 'x' disappearing. Examples:

x**a = 1
x*a = 0
x/a = b

The naive solutions to these equations are only valid if a != 0.
So solveset(x*a, x) should return {0} \ {a} instead of just {0}, similar to what happens for solveset(abs(x) - a, x, S.Reals)

@oscarbenjamin
Copy link
Contributor

I currently get the same:

In [10]: solveset(x*a, x)                                                                                                                                     
Out[10]: {0}

I guess this should be something like:

{0 | a != 0} union something...

Similar issue:

In [16]: solveset(a*x-1, x)                                                                                                                                   
Out[16]: 
⎧1⎫
⎨─⎬
⎩a⎭

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

2 participants