README updated and lineare_algebra/aufgabenblatt_6_6.py created
This commit is contained in:
parent
009673461b
commit
d5f90a53a2
@ -1,6 +1,6 @@
|
|||||||
This reposetory is used for saving my calculations. Install Jupyter VS Code extension for interactive window
|
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
|
* numpy
|
||||||
* matplotlib
|
* matplotlib
|
||||||
* sympy
|
* sympy
|
||||||
|
|||||||
27
lineare_algebra/aufgabenblatt_6_6.py
Normal file
27
lineare_algebra/aufgabenblatt_6_6.py
Normal file
@ -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));
|
||||||
|
|
||||||
|
|
||||||
|
# %%
|
||||||
Loading…
x
Reference in New Issue
Block a user