Created
November 8, 2015 08:54
-
-
Save tuturto/3ecf8db05b03d9a9e608 to your computer and use it in GitHub Desktop.
solver - first steps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hy 0.11.0 using CPython(default) 3.4.3 on Linux | |
=> (import [pyherc.solver [Variable are-equal! solve]]) | |
=> (setv var1 (Variable 1 2 3 4 5)) | |
=> (setv var2 (Variable 3 4 5 6 7)) | |
=> (setv var3 (Variable 5 6 7 8 9)) | |
=> (are-equal! var1 var2) | |
=> (are-equal! var2 var3) | |
=> (solve var1 var2 var3) | |
=> [var1 var2 var3] | |
[{5}, {5}, {5}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment