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

Apply arithmetic and functions to equations #1198

Open
c3d opened this issue Sep 18, 2024 · 0 comments
Open

Apply arithmetic and functions to equations #1198

c3d opened this issue Sep 18, 2024 · 0 comments
Labels
done Issues that are done on dev (will be in next release) feature New or missing features

Comments

@c3d
Copy link
Owner

c3d commented Sep 18, 2024

When we apply a function or an arithmetic operation on an equation, i.e. an expression in the form 'A=B', then we want to have 'F(A)=F(B)' (when applying function F), or 'A+K=B+K' when adding K.

When we have two equations, then combine the left and right terms separately. For example, 'A=B' 'C=D' * should result in 'A*C=B*D'.

@c3d c3d added feature New or missing features done Issues that are done on dev (will be in next release) labels Sep 18, 2024
c3d added a commit that referenced this issue Sep 20, 2024
When dealing with equalities, ensure that we apply arithmetic and
functions to both sides of the equation.

For example, `'A=B' 3 +` will result in `'A+3=B+3'`.

When both sides of an arithmetic operation are equalities, then apply
left to left and right to right, i.e. `'A=B' 'C=D' *` will return
`'A*C=B*D`'.

Fixes: #1198

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done Issues that are done on dev (will be in next release) feature New or missing features
Projects
None yet
Development

No branches or pull requests

1 participant