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

Sums with IndexedVariable simplifies incorrectly #189

Open
andia89 opened this issue Dec 31, 2023 · 1 comment
Open

Sums with IndexedVariable simplifies incorrectly #189

andia89 opened this issue Dec 31, 2023 · 1 comment

Comments

@andia89
Copy link

andia89 commented Dec 31, 2023

Related to #188 when using IndexedVariables some resulting sums get simplified incorrectly

Example:

@cnumbers N
ha = NLevelSpace(:atoms, 2)
i = Index(ha,:i,N,ha)
gi = IndexedVariable(:g, i)
s=∑(gi,i)+∑(gi,i)
SymbolicUtils.simplify(s)

outputs

2N*gi

which is not correct. Is the missing of an operator an issue?

@ChristophHotter
Copy link
Member

Thanks for this issue and sorry for the very late reply.
I solved this in version 0.2.27.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants