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
allow sympy algorithm in solve #22322
Comments
comment:1
AFAIK, also useful for equations where the unkown appears as an exponent, cf. solve(4.94 * 1.062^x == 15, x) |
comment:3
do you have some idea on how to tackle this? otherwise, what about passing |
comment:4
Replying to @mforets:
Yes, that would be it for the equalities. For inequalities |
comment:5
Correction, doing |
Dependencies: #23990 |
comment:8
Hmmm...
Is that the expected behaviour ? Or do you plan to enhance the It is not obvious to me why (e. g.) mathematica objets can (sometimes...) be converted back to sage via the |
comment:9
As I explained in #23990 that is the SymPy convention. |
comment:11
Now that (with #23990) relations are translated from/to SymPy there are still things needed. For example we need to translate any assumptions on variables (and maybe anon. functions?) that were made using |
comment:12
Note that SymPy's solve does not respect the global assumptions database:
So the dependency is irrelevant (at the moment). |
comment:13
Our solve doesn't either, so it all is localized in the solve arguments:
|
comment:14
Our solve's output is quite opaque IMHO:
From a glance, which is AND, which is OR? So I would like to use
So people would need to know that |
comment:16
Replying to @rwst:
Supporting expression indexing seems tricky. Also this is an interface change. Better move it to a future ticket. |
comment:17
I cannot believe devs maintained two different versions of |
comment:18
shall we consider interfacing with SymPy's solveset? it is said to supersede solve sooner or later. i find that the interface |
comment:19
Replying to @mforets:
Fly in the ointment : In order to solve system, we would have to map
The domain is only a part of the possible assumptions : e. g., maxima often asks if some expression is positive, if such variable is integer, etc... We need to maintain a "knowledge base" about outr variables as least as rich as our current (= Maxima's) facts base. A few remarks :
The wasp in the ointment is of course that I think that |
comment:20
Replying to @mforets:
I have abandoned the idea of respecting assumptions after I saw that SymPy doesn't either. We don't have to reproduce Maxima results so we're good.
If they replace it will be unified. And I think Sage's
It's always problematic because you need to decide ordering of expressions without variables, and that can take time because of the possible need to increase precision. The question is, should we support SymPy's solve or immediately use solveset exclusively?
Please review #10035.
Isn't that the same as a local context? |
comment:22
Replying to @rwst:
And me, it seems...
That's pushing the can down the road : in order to get the solutions, we're bound to solve a system comprising the solutions obtained without the assumptions and the assumptions themselves, which might be unsolvable (e. g. cubic equation with a solution in casus irreducibilis + constraints showing that the roots are real)...
Indeed. If...
IMHO, both. But that might be a lot of work.. Depends on your prognosis on the time necessary for the Sympy team to coax
Done (positively). But that is a possible solution only for function calls supporting
I do not understand that (yet). Care to amplify ? And, BTW, thank you for the huge work you are doing on Sympy, which might turn out very important for Sage. |
comment:41
We'll need to work on #22024 next because |
Changed branch from u/rws/22322 to u/rws/22322-1 |
comment:43
This is a new branch because of differences in the dependencies. I also added the missing translation of Please review, these should be the last big changes. New commits:
|
comment:45
Reviewer name. |
Reviewer: Emmanuel Charpentier |
comment:47
@EmmanuelCharpentier I hope you don't mind me adding your name. |
comment:49
On OSX:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed branch from u/rws/22322-1 to |
What it says. See e.g. this post for why.
Depends on #23990
Depends on #24104
Depends on #24062
CC: @rwst @mforets @sagetrac-tmonteil @EmmanuelCharpentier
Component: symbolics
Author: Ralf Stephan
Branch/Commit:
8e1e240
Reviewer: Emmanuel Charpentier
Issue created by migration from https://trac.sagemath.org/ticket/22322
The text was updated successfully, but these errors were encountered: