From d5f90a53a22027195d6d3fc0efdffe14fd3acefe Mon Sep 17 00:00:00 2001 From: git-sandro Date: Sat, 1 Nov 2025 18:08:22 +0100 Subject: [PATCH] README updated and lineare_algebra/aufgabenblatt_6_6.py created --- README.md | 2 +- lineare_algebra/aufgabenblatt_6_6.py | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 lineare_algebra/aufgabenblatt_6_6.py diff --git a/README.md b/README.md index 06b1c98..f53c523 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ This reposetory is used for saving my calculations. Install Jupyter VS Code extension for interactive window -Python libraries needed. Use pip install ... +Install this Python libraries in your virtual environment. Use pip install ... * numpy * matplotlib * sympy diff --git a/lineare_algebra/aufgabenblatt_6_6.py b/lineare_algebra/aufgabenblatt_6_6.py new file mode 100644 index 0000000..bdf0d79 --- /dev/null +++ b/lineare_algebra/aufgabenblatt_6_6.py @@ -0,0 +1,27 @@ +#%% +# Python initialisieren +import sympy as sp; +import IPython.display as dp; + +x = sp.symbols("x"); + +def solve_equation(eq): + return sp.solve(eq) + + +# Ausgabe +equations = [ + sp.Eq(sp.sin(2*x), 0), #a + sp.Eq(sp.sin(x), sp.cos(x)), #b + sp.Eq(3*sp.cot(x)**2, 9), #c + sp.Eq(4*sp.cos(3*x)-2, 0), #d + sp.Eq(sp.sin(x)*sp.cos(x), (-1/2)), #e + sp.Eq(sp.sin(2*x), -1), #e + sp.Eq(sp.cos(x), (3/2)*sp.tan(x)), #f + ] + +for eq in equations: + dp.display(solve_equation(eq)); + + +# %%