From 063e439d5e74b39709262ea9b87c757db06cb1ec Mon Sep 17 00:00:00 2001 From: zimmersandro Date: Sun, 8 Mar 2026 12:46:35 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20task3=20analysis=20feat:=20sympy,=20iph?= =?UTF-8?q?ython=20und=20black=20als=20requirement=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements.txt | 3 +++ src/analysis/task3.py | 30 ++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 src/analysis/task3.py diff --git a/requirements.txt b/requirements.txt index 6f62b46..9602100 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,6 @@ numpy matplotlib ipykernel +ipython +sympy +black \ No newline at end of file diff --git a/src/analysis/task3.py b/src/analysis/task3.py new file mode 100644 index 0000000..5488310 --- /dev/null +++ b/src/analysis/task3.py @@ -0,0 +1,30 @@ +# %% +# Python inizialisieren +import IPython.display as dp +import sympy as sp + +sp.init_printing() + +# Symbole +x = sp.symbols("x") +a = sp.symbols("a") +w = sp.symbols("w") + +# Funktionen + +funktionen = [ + x / (1 + x**4), + (sp.exp(a * x)) * sp.sin(w * x), + x**3 * sp.cos(x**2), + x / sp.cos(x) ** 2, + (sp.exp(2 * x)) / 1 + sp.exp(x), + (sp.ln(x) ** 3) / x, + sp.cos(sp.log(x)), +] + +# Berechnung +for f in funktionen: + F = sp.simplify(sp.integrate(f, x)) + dp.display(f) + dp.display(F) + print("---------------------------------------------")