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

Add a division-of-constants reduction rule. #19

Open
linas opened this issue Sep 9, 2015 · 0 comments
Open

Add a division-of-constants reduction rule. #19

linas opened this issue Sep 9, 2015 · 0 comments

Comments

@linas
Copy link
Member

linas commented Sep 9, 2015

Add a contin reduction that can reduce this:

((5.06447865729134317 * x) - 1.38413811600397763)  > 0

to this:

(x - 0.2733031788002957) > 0

Such a rule does not currently exist, because when contins used the power-of-2 representation, performing constant divisions would blow up the rep (consider representing 1/3 by base-2 binary!)

Now that we use float-poit and PSO, it makes sense to add this new reduction rule.

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

1 participant