aboutsummaryrefslogtreecommitdiff
path: root/test/oryx/sample-python
diff options
context:
space:
mode:
Diffstat (limited to 'test/oryx/sample-python')
-rw-r--r--test/oryx/sample-python/requirements.txt2
-rw-r--r--test/oryx/sample-python/src/solve.py12
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)