I'm trying to solve an equation with Z3 Thoerem Prover in Python. But the solution I get is wrong.
from z3 import *
solv = Solver()
x = Int("x")
y = Int("y")
z = Int("z")
s = Solver()
s.add(x/(y+z)+y/(x+z)+z/(x+y)==10, x>0, y>0, z>0)
s.add()
print(s.check())
print(s.model())
I get this solution:
[z = 60, y = 5, x = 1]
But when you fill in those values to the given equation the result is: 10.09735182849937. But what I want to find is an exact solution. What am I doing wrong?
Thanks for your help :)