I'm getting this error with
>>> sympy.release.__version__
>>> import sympy
>>> v,b = sympy.symbols('v b')
>>> sympy.solveset(v/sympy.sqrt(-v**2 + 1) - b, v)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/base/data/home/apps/s~sympy-live-hrd/46.393464279709602171/sympy/sympy/solvers/solveset.py", line 791, in solveset
return _solveset(f, symbol, domain, _check=True)
File "/base/data/home/apps/s~sympy-live-hrd/46.393464279709602171/sympy/sympy/solvers/solveset.py", line 612, in _solveset
solver)
File "/base/data/home/apps/s~sympy-live-hrd/46.393464279709602171/sympy/sympy/solvers/solveset.py", line 507, in _solve_radical
return FiniteSet(*[s for s in result if checksol(f, symbol, s) is True])
TypeError: 'Complement' object is not iterable
But it solves it fine after trivial transformation:
>>> sympy.solveset(v**2/(-v**2 + 1) - b**2, v)
{-b*sqrt(1/(b**2 + 1)), b*sqrt(1/(b**2 + 1))} \ {-1, 1}
Is this the expected behaviour?
What does the error "'Complement' object is not iterable" means? Google not saying anything at all on this particular error message.
Thank you for your time and consideration.