[sympy] Issue Comparing Two SolveSet Groups

2022-12-22 Thread Kevin Moore
Hello! I'm trying to get my head wrapped around how to use SolveSet (and whether I should be using solve or some other method instead), and I ran into the following problem. I have two sets: Solution_Set=solveset(Eq(y,x+x/2),y,S.Reals) Solution_Set2=solveset(Eq(y,1.5*x),y,S.Reals) Now I want t

Re: [sympy] curvilinear coordinates

2022-12-22 Thread Chris Smith
If you want to ignore `Abs`, replace it: `expr.replace(Abs, Id)` /c On Wednesday, December 21, 2022 at 10:13:22 PM UTC-6 arthur...@gmail.com wrote: > Staffan, > > Just a guess, but sin(phi) goes negative even for positive values of phi. > You’d have limit the range to 0 <= phi <= pi. > > — A

Re: [sympy] Dataclasses for symbolic computation

2022-12-22 Thread Oscar Benjamin
On Thu, 22 Dec 2022 at 04:52, S.Y. Lee wrote: > > Hashcons looks interesting, but as simple as making every object as singletons > I would have a question how this would be implemented effectively on top of > python, for example, how to keep the hash table not grow infinitely with dead > referen