-
Notifications
You must be signed in to change notification settings - Fork 12
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
Wrong result #10
Comments
Indeed, I can confirm your findings. I will investigate it later, hope to get back at you soon. Thanks for report. |
The bug was only in the representation (#to_s), so the internal expression is correct, although not totally optimized. You can try the latest symbolic with Bundler, fetching directly from the master, or wait the next release. |
integration_spec.rb says that failures still occur
Thus, I'm still not getting the correct result when using the expression |
Indeed, this expression is "not totally optimized", but both expressions are mathematically equal. Do you need such simplification? |
Your gem is perfect, because ultimately you can get an expression that contains only one time mention of a particular variable. In the case of incomplete simplify the expression - it does not. At the same time, the expression |
Hello,
When I tried to use your beauty gem, I wrote this code:
x = var :name => 'x'
y = var :name => 'y'
puts x - (y + x) / 5
And I got the next result:
x-0.2*y+x
but its wrong :(
Best wishes, Gleb
The text was updated successfully, but these errors were encountered: