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("---------------------------------------------")