We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
>>> ga, e1, e2, e3, ep, en = galgebra.ga.Ga.build('e_1 e_2 e_3 e_{+} e_{-}',g=[1,1,1, 1, -1]) >>> sympy.simplify(e1) RecursionError: maximum recursion depth exceeded while calling a Python object >>> list(e1) RecursionError: maximum recursion depth exceeded while calling a Python object
This is because:
sympy.simplify
list
iter(e1)
Mv.__iter__
def __iter__(self): i = 0 while True: try: yield self[i] except IndexError: break i += 1 ```
Mv.__getitem__
Possible fixes:
The text was updated successfully, but these errors were encountered:
Using the TypeError approach doesn't improve things much:
TypeError
>>> sympy.simplify(e1)*e1
Sorry, something went wrong.
sympy.simplify(e1.obj) should do the trick
Successfully merging a pull request may close this issue.
This is because:
sympy.simplify
andlist
callsiter(e1)
Mv.__iter__
is not defined, so it defaults to:Mv.__getitem__
will return 0 forever, as it implies grade selectionPossible fixes:
Mv.__iter__
raise TypeErrorMv.__iter__
iterate only up to the highest grade presentThe text was updated successfully, but these errors were encountered: