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

Automate number-to-peano conversion. #2

Open
aalhour opened this issue Dec 21, 2015 · 0 comments
Open

Automate number-to-peano conversion. #2

aalhour opened this issue Dec 21, 2015 · 0 comments

Comments

@aalhour
Copy link
Owner

aalhour commented Dec 21, 2015

Automate the conversion of numbers from decimal to peano when passed as parameters to the relations "add" and "multiply".

Example:

goal = Goal.with_variables(
    lambda x, y:
         multiply(x, y, peano.to_peano(24)))

Will become:

goal = Goal.with_variables(
    lambda x, y:
         multiply(x, y, 24))
#24 is automatically converted to peano inside the relation.
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