From 3fc9604ddadc34ec44651ce981cebc7bd77095e5 Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Thu, 17 Nov 2022 11:55:43 -0800 Subject: Oryx: Build with .NET 6 (#298) * Oryx: Install dotnet 3.1 runtime * fix tests * build with .NET 6 + add tests * add tests * fix tests * shellcheck: nit --- test/oryx/sample-python/requirements.txt | 2 ++ test/oryx/sample-python/src/solve.py | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 test/oryx/sample-python/requirements.txt create mode 100644 test/oryx/sample-python/src/solve.py (limited to 'test/oryx/sample-python') diff --git a/test/oryx/sample-python/requirements.txt b/test/oryx/sample-python/requirements.txt new file mode 100644 index 0000000..c8a04f6 --- /dev/null +++ b/test/oryx/sample-python/requirements.txt @@ -0,0 +1,2 @@ +mpmath==1.2.1 +sympy==1.11.1 diff --git a/test/oryx/sample-python/src/solve.py b/test/oryx/sample-python/src/solve.py new file mode 100644 index 0000000..141a996 --- /dev/null +++ b/test/oryx/sample-python/src/solve.py @@ -0,0 +1,12 @@ +from sympy import Symbol, Eq, solve + +x = Symbol("x") +y = Symbol("y") + +equation_1 = Eq((x + y), 2) +equation_2 = Eq((x - y), 4) +print("Equation 1:", equation_1) +print("Equation 2:", equation_2) + +solution = solve((equation_1, equation_2), (x, y)) +print("Solution:", solution) -- cgit v1.2.3