diff options
author | Samruddhi Khandale <skhandale@microsoft.com> | 2022-11-17 22:55:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-17 22:55:43 +0300 |
commit | 3fc9604ddadc34ec44651ce981cebc7bd77095e5 (patch) | |
tree | 46f1603423215c57744c7165d71fd78d53afd888 /test/oryx/sample-python | |
parent | be4f0498e4ad7948804d4be70093c1da8722d222 (diff) |
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
Diffstat (limited to 'test/oryx/sample-python')
-rw-r--r-- | test/oryx/sample-python/requirements.txt | 2 | ||||
-rw-r--r-- | test/oryx/sample-python/src/solve.py | 12 |
2 files changed, 14 insertions, 0 deletions
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) |