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

simplify solve output #22

Open
mschuene opened this issue Mar 18, 2016 · 1 comment
Open

simplify solve output #22

mschuene opened this issue Mar 18, 2016 · 1 comment

Comments

@mschuene
Copy link
Contributor

(solve '[x y](ex %28= y %28* x 4/3%29%29) ;; y = 4/3 x
(ex (= y (+ 1 -1 (* x 4/3))))) ;; y = 4/3 x
returns #{{x (* (- _0) -3/4), y _0}} , which is correct but can be simplified further to

{{x (* _0 3/4), y _0}}

@Vaguery
Copy link

Vaguery commented Mar 20, 2016

Well, technically it can be simplified to #{{x _0, y (* 4/3 _0)}} (if I understand the notation correctly).

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