Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. In [59]: sol(2)
  2. a+b+1
  3. a*b
  4.  
  5. Out[59]: [a > 0, b > 0, a + b + 1 == a*b]
  6.  
  7. In [63]: res.check()
  8. Out[63]: sat
  9.  
  10. In [64]: res.model()
  11. Out[64]: [b = 2, a = 3]
  12.  
  13.  
  14. In [65]: res = sol(8)
  15. a*b*c*d*e*f*g+a*b*c*d*e*f*h+a*b*c*d*e*g*h+a*b*c*d*f*g*h+a*b*c*e*f*g*h+a*b*d*e*f*g*h+a*c*d*e*f*g*h+b*c*d*e*f*g*h+1
  16. a*b*c*d*e*f*g*h
  17.  
  18. In [66]: res.check()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement