The source code and dockerfile for the GSW2024 AI Lab.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 

16 lines
381 B

import pycarl
import pycarl.gmp
def example_getting_started_01():
pycarl.clear_variable_pool()
x = pycarl.Variable("x")
y = pycarl.Variable("y")
pol1 = x * x + pycarl.gmp.Integer(2)
pol2 = y + pycarl.gmp.Integer(1)
result = pol1 * pol2
print("({}) * ({}) = {}".format(pol1, pol2, result))
if __name__ == '__main__':
example_getting_started_01()