The source code and dockerfile for the GSW2024 AI Lab.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

16 lines
381 B

2 months ago
  1. import pycarl
  2. import pycarl.gmp
  3. def example_getting_started_01():
  4. pycarl.clear_variable_pool()
  5. x = pycarl.Variable("x")
  6. y = pycarl.Variable("y")
  7. pol1 = x * x + pycarl.gmp.Integer(2)
  8. pol2 = y + pycarl.gmp.Integer(1)
  9. result = pol1 * pol2
  10. print("({}) * ({}) = {}".format(pol1, pol2, result))
  11. if __name__ == '__main__':
  12. example_getting_started_01()