feat: task3 analysis feat: sympy, iphython und black als requirement hinzugefügt
This commit is contained in:
parent
cb48ca8509
commit
063e439d5e
@ -1,3 +1,6 @@
|
||||
numpy
|
||||
matplotlib
|
||||
ipykernel
|
||||
ipython
|
||||
sympy
|
||||
black
|
||||
30
src/analysis/task3.py
Normal file
30
src/analysis/task3.py
Normal file
@ -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("---------------------------------------------")
|
||||
Loading…
x
Reference in New Issue
Block a user